Added more precise controller shutdown messages.
This commit is contained in:
parent
c7e6f966b0
commit
6fd8fef8bb
1 changed files with 6 additions and 1 deletions
|
@ -650,8 +650,13 @@ int main(int argc, char ** argv){
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!conf.is_active){
|
||||
Controller::Log("CONF", "Controller shutting down because of user request (received shutdown signal)");
|
||||
}
|
||||
if (!API_Socket.connected()){
|
||||
Controller::Log("CONF", "Controller shutting down because of socket problem (API port closed)");
|
||||
}
|
||||
API_Socket.close();
|
||||
Controller::Log("CONF", "Controller shutting down");
|
||||
if ( !Controller::WriteFile(conf.getString("configFile"), Controller::Storage.toString())){
|
||||
std::cerr << "Error writing config " << conf.getString("configFile") << std::endl;
|
||||
Controller::Storage.removeMember("log");
|
||||
|
|
Loading…
Add table
Reference in a new issue