mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
Update bin/daemon.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
8827d4c142
commit
f430e06f80
1 changed files with 1 additions and 2 deletions
|
@ -163,8 +163,7 @@ if (!$foreground) {
|
||||||
exit(1);
|
exit(1);
|
||||||
} elseif ($pid) {
|
} elseif ($pid) {
|
||||||
// The parent process continues here
|
// The parent process continues here
|
||||||
file_put_contents($pidfile, $pid);
|
if (!file_put_contents($pidfile, $pid)) {
|
||||||
if (!is_readable($pidfile)) {
|
|
||||||
echo "Pid file wasn't written.\n";
|
echo "Pid file wasn't written.\n";
|
||||||
Logger::warning('Could not store pid file');
|
Logger::warning('Could not store pid file');
|
||||||
posix_kill($pid, SIGTERM);
|
posix_kill($pid, SIGTERM);
|
||||||
|
|
Loading…
Reference in a new issue