syncd/syncd_request_shutdown.cpp (13 lines of code) (raw):

#include "RequestShutdownCommandLineOptionsParser.h" #include "RequestShutdown.h" #include "swss/logger.h" using namespace syncd; int main(int argc, char **argv) { swss::Logger::getInstance().setMinPrio(swss::Logger::SWSS_NOTICE); SWSS_LOG_ENTER(); auto options = RequestShutdownCommandLineOptionsParser::parseCommandLine(argc, argv); RequestShutdown rs(options); rs.send(); return EXIT_SUCCESS; }