Hey, that's what I', but I have an error, it's not responding.
#!/bin/sh
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
oscam_rs () {
killall -9 oscam-stable 2>/dev/null
sleep 3
remove_tmp
/usr/bin/oscam-stable -b
}
if ! ps x |grep -v grep |grep -c /usr/bin/oscam-stable >/dev/null
then
oscam_rs
echo `date "+%d/%m/%y %R process was not working"` >> /media/usb/tmp/oscam_restart_log
elif
tail -8 /media/usb/tmp/oscam.log |grep -v grep |grep -c ins40 >/dev/null
then
oscam_rs
echo `date "+%d/%m/%y %R ins40 error detected"` >> /media/usb/tmp/oscam_restart_log
elif
tail -8 /media/usb/tmp/oscam.log |grep -v grep |grep -c deadlock >/dev/null
then
oscam_rs
echo `date "+%d/%m/%y %R deadlock error detected"` >> /media/usb/tmp/oscam_restart_log
else
echo "ok"
fi
oscam ist rename oscam-stable.
This I put to a file oscamcheck.sh und upload /etc/init.d/ i have PLI 2.1.
In the cron I entered */5 * * * * /etc/init.d/oscamcheck.sh But it doesn't work. I really I don't know how to go on, it Will someone please?
