Watchdog (Oscam): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 35: Zeile 35:




Zurück zu [[OSCam_(Satreceiver)#Watchdog|OSCam_(Satreceiver)]]
Zurück zu [[OSCam_(Raspberry)#Watchdog|OSCam_(Raspberry)]], [[OSCam_(Satreceiver)#Watchdog|OSCam_(Satreceiver)]]

Version vom 2. September 2023, 13:35 Uhr

Noch in Bearbeitung


Pfad

Raspberry:

sudo vi /usr/local/bin/oscam_watchdog.sh

Receiver:

sudo vi /usr/script/oscam_watchdog.sh

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

Links

http://raspberry.tips/raspberrypi-tutorials/oscam-watchdog-fuer-den-raspberry-pi/


Zurück zu OSCam_(Raspberry), OSCam_(Satreceiver)