Add posix_kill() SIGTERM for Friendica

pull/12960/head
Philipp Holzer 2 months ago
parent 2ac37b2d45
commit 73a9db84ee
Signed by: nupplaPhil
GPG Key ID: 24A7501396EB5432

@ -76,8 +76,8 @@ DI::config()->reload();
if (empty(DI::config()->get('system', 'pidfile'))) {
die(<<<TXT
Please set system.pidfile in config/local.config.php. For example:
'system' => [
'system' => [
'pidfile' => '/path/to/daemon.pid',
],
TXT
@ -247,5 +247,6 @@ while (true) {
}
function shutdown() {
posix_kill(posix_getpid(), SIGTERM);
posix_kill(posix_getpid(), SIGHUP);
}

Loading…
Cancel
Save