Watchdog (Oscam): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Script) |
|||
Zeile 6: | Zeile 6: | ||
Siehe auch: [[Startup-Scripte (Enigma2)|Startup-Scripte]] | Siehe auch: [[Startup-Scripte (Enigma2)|Startup-Scripte]] | ||
== | == Raspberry == | ||
=== Pfad === | |||
<pre> | <pre> | ||
Zeile 14: | Zeile 14: | ||
</pre> | </pre> | ||
=== PID ermitteln === | |||
== PID ermitteln == | |||
<pre> | <pre> | ||
Zeile 28: | Zeile 20: | ||
</pre> | </pre> | ||
=== Script === | |||
== Script | |||
<pre> | <pre> | ||
Zeile 50: | Zeile 34: | ||
</pre> | </pre> | ||
=== | == Receiver == | ||
=== Pfad === | |||
<pre> | |||
sudo vi /usr/script/oscam_watchdog.sh | |||
</pre> | |||
=== PID ermitteln === | |||
<pre> | |||
pidof oscam_1.20-unstable-11682 | |||
</pre> | |||
=== Script === | |||
<pre> | <pre> |
Version vom 2. September 2023, 14:32 Uhr
Noch in Bearbeitung
verwandte Themen
Siehe auch: Startup-Scripte
Raspberry
Pfad
sudo vi /usr/local/bin/oscam_watchdog.sh
PID ermitteln
pidof /usr/local/bin/oscam
Script
PIDFILE=/var/run/oscam.pid if (kill -0 `cat $PIDFILE`) then echo "it's alive!" >; /dev/null else rm $PIDFILE /usr/local/bin/oscam start > /dev/null echo "OSCAM restarted at `date`" >> /var/log/oscam-crash.log fi
Receiver
Pfad
sudo vi /usr/script/oscam_watchdog.sh
PID ermitteln
pidof oscam_1.20-unstable-11682
Script
PID=$(pidof oscam_1.20-unstable-11682) if (kill -0 $PID) then echo "it's alive!" >; /dev/null else /usr/local/bin/oscam start > /dev/null echo "OSCAM restarted at `date`" >> /var/log/oscam-crash.log fi
Links
http://raspberry.tips/raspberrypi-tutorials/oscam-watchdog-fuer-den-raspberry-pi/
Zurück zu OSCam_(Raspberry), OSCam_(Satreceiver)