diff --git a/scripts/service_controls.php b/scripts/service_controls.php index ad86a1e..faf4da4 100644 --- a/scripts/service_controls.php +++ b/scripts/service_controls.php @@ -1,11 +1,21 @@ 200) { + echo "(stalled - backlog of ".$filesinproc." files in ~/BirdSongs/Processed/)"; + return; + } + } $op = shell_exec("sudo systemctl status ".$name." | grep Active | grep ' active\| activating\|running\|waiting\|start'"); if(strlen($op) > 0) { echo "(active)"; } else { - echo "(inactive)"; + echo "(inactive)"; } } ?>