From 410310282fc9f111ded36100d8623a97207dff01 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sun, 6 Jun 2021 16:38:11 -0400 Subject: [PATCH] Load configuration after forking --- lib/CLI.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CLI.php b/lib/CLI.php index 4f5e7e98..5b3614d8 100644 --- a/lib/CLI.php +++ b/lib/CLI.php @@ -81,7 +81,7 @@ USAGE_TEXT; try { $cmd = $this->command($args); if ($cmd && !in_array($cmd, ["", "conf save-defaults", "daemon"])) { - // only certain commands don't require configuration to be loaded + // only certain commands don't require configuration to be loaded; daemon loads configuration after forking (if applicable) $this->loadConf(); } switch ($cmd) { @@ -96,6 +96,7 @@ USAGE_TEXT; if ($args['--fork'] !== null) { $this->fork($args['--fork']); } + $this->loadConf(); Arsse::$obj->get(Service::class)->watch(true); return 0; case "feed refresh":