From: Hypolite Petovan Date: Tue, 26 Jun 2018 00:56:35 +0000 (-0400) Subject: Update support for daemon pidfile config X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=46b34574d97734127f32c3010d48cca59d755dd8;p=friendica.git Update support for daemon pidfile config --- diff --git a/bin/daemon.php b/bin/daemon.php index 2450e4223e..2813100267 100755 --- a/bin/daemon.php +++ b/bin/daemon.php @@ -34,11 +34,14 @@ if ($a->mode === App::MODE_INSTALL) { Config::load(); -if (!isset($pidfile)) { - die('Please specify a pid file in the variable $pidfile in the .htconfig.php. For example:'."\n". - '$pidfile = "/path/to/daemon.pid";'."\n"); +if (empty(Config::get('system', 'pidfile'))) { + die('Please set system.pidfile in config/local.ini.php. For example:'."\n". + '[system]'."\n". + 'pidfile = /path/to/daemon.pid'."\n"); } +$pidfile = Config::get('system', 'pidfile'); + if (in_array("start", $_SERVER["argv"])) { $mode = "start"; }