From fce0c080959bbbb3949733a514575af8b38e5232 Mon Sep 17 00:00:00 2001
From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com>
Date: Fri, 22 Jul 2022 18:51:02 -0400
Subject: [PATCH] Update service_controls.php
---
scripts/service_controls.php | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
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)";
}
}
?>