X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fdaemon.php;h=e550aea891ed157adad7b585019598a68dab80b5;hb=28b2fb04e477cc6ba12b371f091492f0a99ec49c;hp=7182cb8eca8f58dede6595bc0278fabb2f204458;hpb=24c32cff0dcd38d5aa509208f5f17abb05a8b140;p=friendica.git diff --git a/bin/daemon.php b/bin/daemon.php index 7182cb8eca..e550aea891 100755 --- a/bin/daemon.php +++ b/bin/daemon.php @@ -76,8 +76,8 @@ DI::config()->reload(); if (empty(DI::config()->get('system', 'pidfile'))) { die(<< [ + + '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); }