diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2020-06-23 10:16:07 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2020-06-23 10:16:07 +0300 |
| commit | 9a5630dc8f9af2ac7c626036707765acd2a86d22 (patch) | |
| tree | 0a18b19a39cd8ff91a42656586adb03795dcb392 /libs/services.php | |
| parent | b3a7bc5c7ad0ebf65779be583ce236fa5129ef0d (diff) | |
Fix systemd service check return value
Diffstat (limited to 'libs/services.php')
| -rw-r--r-- | libs/services.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
