]> git.mxchange.org Git - friendica.git/blobdiff - bin/daemon.php
Remove api test pconfig debug
[friendica.git] / bin / daemon.php
index 2450e4223e5877532db6eedd8aef09d578220ea7..65ae2a53b6596730e9f4b107e95c7dffdf001c04 100755 (executable)
@@ -28,17 +28,20 @@ require_once "include/dba.php";
 
 $a = new App(dirname(__DIR__));
 
-if ($a->mode === App::MODE_INSTALL) {
+if ($a->isInstallMode()) {
        die("Friendica isn't properly installed yet.\n");
 }
 
 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";
 }