mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
Add posix_kill() SIGTERM for Friendica
This commit is contained in:
parent
2ac37b2d45
commit
73a9db84ee
1 changed files with 3 additions and 2 deletions
|
@ -76,8 +76,8 @@ DI::config()->reload();
|
||||||
if (empty(DI::config()->get('system', 'pidfile'))) {
|
if (empty(DI::config()->get('system', 'pidfile'))) {
|
||||||
die(<<<TXT
|
die(<<<TXT
|
||||||
Please set system.pidfile in config/local.config.php. For example:
|
Please set system.pidfile in config/local.config.php. For example:
|
||||||
|
|
||||||
'system' => [
|
'system' => [
|
||||||
'pidfile' => '/path/to/daemon.pid',
|
'pidfile' => '/path/to/daemon.pid',
|
||||||
],
|
],
|
||||||
TXT
|
TXT
|
||||||
|
@ -247,5 +247,6 @@ while (true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function shutdown() {
|
function shutdown() {
|
||||||
|
posix_kill(posix_getpid(), SIGTERM);
|
||||||
posix_kill(posix_getpid(), SIGHUP);
|
posix_kill(posix_getpid(), SIGHUP);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue