rename the config file

This commit is contained in:
Justin Hammond 2015-10-18 23:35:55 +08:00
parent 4e9483b4df
commit 0b5addda67
3 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ int cmd_save(struct cli_def *cli, const char *command, char *argv[], int argc)
{ {
struct LMBCTX *lmbctx = (struct LMBCTX *)cli_get_context(cli); struct LMBCTX *lmbctx = (struct LMBCTX *)cli_get_context(cli);
boost::unique_lock<boost::mutex> scoped_lock(lmbctx->io_mutex); boost::unique_lock<boost::mutex> scoped_lock(lmbctx->io_mutex);
lmbctx->save("LMB.conf"); lmbctx->save("/etc/LMBd.conf");
cli_print(cli, "Saved Config"); cli_print(cli, "Saved Config");
BOOST_LOG_TRIVIAL(info) << "Saved Config From Terminal"; BOOST_LOG_TRIVIAL(info) << "Saved Config From Terminal";
return CLI_OK; return CLI_OK;

View file

@ -93,7 +93,7 @@ int main()
std::vector<std::string> displayedmsgs; std::vector<std::string> displayedmsgs;
try { try {
lmbctx->load("LMB.conf"); lmbctx->load("/etc/LMBd.conf");
} catch (...) { } catch (...) {
BOOST_LOG_TRIVIAL(warning) << "Could Not Load Config File"; BOOST_LOG_TRIVIAL(warning) << "Could Not Load Config File";
} }