Merge branch 'development' into LTS_development
This commit is contained in:
commit
e6a9e5d421
1 changed files with 1 additions and 0 deletions
|
@ -968,6 +968,7 @@ void Controller::handleAPICommands(JSON::Value & Request, JSON::Value & Response
|
|||
}
|
||||
WARN_MSG("Shutdown requested through local API: %s", reason.c_str());
|
||||
Controller::conf.is_active = false;
|
||||
kill(getpid(), SIGINT);
|
||||
Response["shutdown"] = "Shutting down";
|
||||
}else{
|
||||
Response["shutdown"] = "Ignored - only local users may request shutdown";
|
||||
|
|
Loading…
Add table
Reference in a new issue