CC-2284: Create script that verifies all required processes are running. Changes: Added check to do the right thing when pypo is turned off.
This commit is contained in:
parent
a4188d44db
commit
ac952ad71e
|
@ -102,7 +102,7 @@ class AirtimeCheck {
|
||||||
self::$check_system_ok = false;
|
self::$check_system_ok = false;
|
||||||
}
|
}
|
||||||
output_status("PLAYOUT_ENGINE_RUNNING_SECONDS", $status);
|
output_status("PLAYOUT_ENGINE_RUNNING_SECONDS", $status);
|
||||||
if ((int)$status < 3) {
|
if (is_numeric($status) && (int)$status < 3) {
|
||||||
self::$check_system_ok = false;
|
self::$check_system_ok = false;
|
||||||
output_msg("WARNING! It looks like the playout engine is continually restarting.");
|
output_msg("WARNING! It looks like the playout engine is continually restarting.");
|
||||||
$command = "tail -10 /var/log/airtime/pypo/main/current";
|
$command = "tail -10 /var/log/airtime/pypo/main/current";
|
||||||
|
@ -144,7 +144,7 @@ class AirtimeCheck {
|
||||||
}
|
}
|
||||||
|
|
||||||
output_status("LIQUIDSOAP_RUNNING_SECONDS", $status);
|
output_status("LIQUIDSOAP_RUNNING_SECONDS", $status);
|
||||||
if ((int)$status < 3) {
|
if (is_numeric($status) && (int)$status < 3) {
|
||||||
self::$check_system_ok = false;
|
self::$check_system_ok = false;
|
||||||
output_msg("WARNING! It looks like liquidsoap is continually restarting.");
|
output_msg("WARNING! It looks like liquidsoap is continually restarting.");
|
||||||
$command = "tail -10 /var/log/airtime/pypo-liquidsoap/main/current";
|
$command = "tail -10 /var/log/airtime/pypo-liquidsoap/main/current";
|
||||||
|
|
Loading…
Reference in New Issue