mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:10:12 +00:00
Fixed code structure
This commit is contained in:
parent
dc16e6d471
commit
6ce23bd9ca
4 changed files with 6 additions and 12 deletions
|
@ -70,7 +70,7 @@ class Daemon
|
|||
return false;
|
||||
}
|
||||
|
||||
$pid = intval(file_get_contents($pidfile));
|
||||
$pid = intval(file_get_contents($pidfile));
|
||||
$running = posix_kill($pid, 0);
|
||||
|
||||
self::$daemon_mode = $running;
|
||||
|
@ -129,9 +129,7 @@ class Daemon
|
|||
private static function spawn()
|
||||
{
|
||||
Logger::notice('Starting new daemon process');
|
||||
$command = 'bin/daemon.php';
|
||||
$a = DI::app();
|
||||
DI::system()->run($command, ['start']);
|
||||
DI::system()->run('bin/daemon.php', ['start']);
|
||||
Logger::notice('New daemon process started');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue