mirror of
https://github.com/friendica/friendica
synced 2025-01-09 20:04:44 +00:00
Make PHP-CS even more happy :)
This commit is contained in:
parent
f2ce5647f2
commit
2b5882855b
3 changed files with 34 additions and 33 deletions
|
@ -83,7 +83,8 @@ HELP;
|
||||||
$this->config->reload();
|
$this->config->reload();
|
||||||
|
|
||||||
if (empty($this->config->get('jetstream', 'pidfile'))) {
|
if (empty($this->config->get('jetstream', 'pidfile'))) {
|
||||||
throw new RuntimeException(<<< TXT
|
throw new RuntimeException(
|
||||||
|
<<< TXT
|
||||||
Please set jetstream.pidfile in config/local.config.php. For example:
|
Please set jetstream.pidfile in config/local.config.php. For example:
|
||||||
|
|
||||||
'jetstream' => [
|
'jetstream' => [
|
||||||
|
|
|
@ -96,7 +96,7 @@ final class Daemon
|
||||||
if ($this->pid < 0) {
|
if ($this->pid < 0) {
|
||||||
$this->logger->warning('Could not fork daemon');
|
$this->logger->warning('Could not fork daemon');
|
||||||
return false;
|
return false;
|
||||||
} else if ($this->pid) {
|
} elseif ($this->pid) {
|
||||||
// The parent process continues here
|
// The parent process continues here
|
||||||
if (!file_put_contents($this->pidfile, $this->pid)) {
|
if (!file_put_contents($this->pidfile, $this->pid)) {
|
||||||
$this->logger->warning('Could not store pid file', ['pid' => $this->pid, 'pidfile' => $this->pidfile]);
|
$this->logger->warning('Could not store pid file', ['pid' => $this->pid, 'pidfile' => $this->pidfile]);
|
||||||
|
|
Loading…
Reference in a new issue