From 9a5630dc8f9af2ac7c626036707765acd2a86d22 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 23 Jun 2020 10:16:07 +0300 Subject: Fix systemd service check return value --- libs/services.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/services.php b/libs/services.php index 0c593cf..c61ac38 100644 --- a/libs/services.php +++ b/libs/services.php @@ -26,7 +26,7 @@ if (count($Config->get('services:list')) > 0) $status = 0; } elseif ($protocol == 'systemd') { - $status = Misc::systemdServiceActive($host) ? 1 : 0; + $status = Misc::systemdServiceActive($host) ? 0 : 1; } else { throw new Exception('Invalid protocol: ' . $protocol); -- cgit v1.3