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)";
}
}
?>