From 46b34574d97734127f32c3010d48cca59d755dd8 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 25 Jun 2018 20:56:35 -0400 Subject: [PATCH] Update support for daemon pidfile config --- bin/daemon.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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"; } -- 2.39.5