From 73a9db84ee0850d8ec13adda8c4c98e2fd010865 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 30 Mar 2023 19:56:51 +0200 Subject: [PATCH] Add posix_kill() SIGTERM for Friendica --- bin/daemon.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.39.5