From: Philipp Date: Thu, 30 Mar 2023 17:56:51 +0000 (+0200) Subject: Add posix_kill() SIGTERM for Friendica X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=73a9db84ee0850d8ec13adda8c4c98e2fd010865;p=friendica.git Add posix_kill() SIGTERM for Friendica --- 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); }