diff --git a/src/controller/controller_api.cpp b/src/controller/controller_api.cpp index 747a6135..e6e027da 100644 --- a/src/controller/controller_api.cpp +++ b/src/controller/controller_api.cpp @@ -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";