diff --git a/scripts/service_controls.php b/scripts/service_controls.php index 506eb3a..b194059 100644 --- a/scripts/service_controls.php +++ b/scripts/service_controls.php @@ -15,7 +15,7 @@ function service_status($name) { } } $op = shell_exec("sudo systemctl status ".$name." | grep Active"); - if (stripos($op, " active (running)")) { + if (stripos($op, " active (running)") || stripos($op, " active (mounted)")) { echo "(active)"; } elseif (stripos($op, " inactive ")) { echo "(inactive)";