Update support for daemon pidfile config

这个提交包含在:
Hypolite Petovan 2018-06-25 20:56:35 -04:00
父节点 3985a4bc43
当前提交 46b34574d9
共有 1 个文件被更改,包括 6 次插入3 次删除

查看文件

@ -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";
}