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());
|
WARN_MSG("Shutdown requested through local API: %s", reason.c_str());
|
||||||
Controller::conf.is_active = false;
|
Controller::conf.is_active = false;
|
||||||
|
kill(getpid(), SIGINT);
|
||||||
Response["shutdown"] = "Shutting down";
|
Response["shutdown"] = "Shutting down";
|
||||||
}else{
|
}else{
|
||||||
Response["shutdown"] = "Ignored - only local users may request shutdown";
|
Response["shutdown"] = "Ignored - only local users may request shutdown";
|
||||||
|
|
Loading…
Add table
Reference in a new issue