X-Git-Url: https://git.stg.codes/ssmd.git/blobdiff_plain/ae26516a8828d54ab7c0e0bca92031a54a15ed62..HEAD:/src/main.cpp diff --git a/src/main.cpp b/src/main.cpp index 71133c2..4dd0a6a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,7 +14,7 @@ #include "pidfile.h" #include "logger.h" -GTS::Logger logger; +SSMD::Logger logger; static bool running = true; static bool reload = false; @@ -22,7 +22,7 @@ void setSignalHandlers(); int main(int argc, char * argv[]) { - GTS::SettingsParser sParser; + SSMD::SettingsParser sParser; // Set filter for logging DefaultLog::log()->set_filter(ERROR_LOG, 7); @@ -45,7 +45,7 @@ int main(int argc, char * argv[]) } if (sParser.settings().isVersion()) { - std::cout << "GTS SNMP Switch Management Daemon " << GTS::version << " (revision: " << GTS::revision << ")" << std::endl; + std::cout << "SNMP Switch Management Daemon " << SSMD::version << " (revision: " << SSMD::revision << ")" << std::endl; return 0; } @@ -62,7 +62,10 @@ int main(int argc, char * argv[]) << "\t- info sync interval: " << sParser.settings().infoSyncInterval() << "\n" << "\t- switch's upload profile id: " << sParser.settings().upProfileId() << "\n" << "\t- switch's download profile id: " << sParser.settings().downProfileId() << "\n" - << "\t- data URL: " << sParser.settings().dataURL() << std::endl; + << "\t- max ACL's per PDU: " << sParser.settings().maxACLPerPDU() << "\n" + << "\t- data URL: " << sParser.settings().dataURL() << "\n" + << "\t- scripts base dir: " << sParser.settings().scriptBase() << "\n" + << "\t- dump scripts: " << (sParser.settings().dumpScripts() ? "yes" : "no") << std::endl; } if (sParser.settings().isDaemon()) { @@ -82,10 +85,10 @@ int main(int argc, char * argv[]) return -1; } - GTS::PIDFile pf(sParser.settings().PIDFile()); - GTS::Syncer syncer(sParser, snmp); + SSMD::PIDFile pf(sParser.settings().PIDFile()); + SSMD::Syncer syncer(sParser, snmp); - logger << "Starting gssmd main thread..." << std::endl; + logger << "Starting ssmd main thread..." << std::endl; setSignalHandlers();