mirror of
https://github.com/ShaYmez/allmon2-last-heard.git
synced 2025-09-07 07:37:53 -04:00
Exit upon failure. Let systemd/supervisor handle it
This commit is contained in:
parent
6063b2421b
commit
14a29273a2
@ -101,7 +101,8 @@ class Stream
|
|||||||
if (!$this->stream) {
|
if (!$this->stream) {
|
||||||
$this->appendToStreamOutput($this->timeFormatted() . " rpt0000 KEY [via 0000] [WINSystem Allmon Connection Failed]");
|
$this->appendToStreamOutput($this->timeFormatted() . " rpt0000 KEY [via 0000] [WINSystem Allmon Connection Failed]");
|
||||||
sleep(120);
|
sleep(120);
|
||||||
$this->streamLoop();
|
// Systemd / Supervisor will restart us anyway
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (!feof($this->stream)) {
|
while (!feof($this->stream)) {
|
||||||
@ -117,6 +118,9 @@ class Stream
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Redundant
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user