

Add in both files below the lines a 5 min cron as you do in debian to check cccam or oscam and save files.ĥ. Go to /etc/bhcron and open files bh.cron and rootĤ. Make a cronjob for ex emu restart at a certain timeģ. Make a script like this and ftp to /usr/script where other scripts are for ex oscam_checkĢ. check files in stick - /media/usb/Įcho `date "+%d/%m/%y %R process was not working"` > /var/log/oscam_restart_log.check # or oscam.checkġ. var/log/oscam.check-/media/usb/oscam.check If you want feedback in var/log, script will be.like thisĪlso you can put a stick, in USB and sent the oscam.check file- there Tail -8 /var/log/oscam.log |grep -v grep |grep -c deadlock >/dev/nullĮcho `date "+%d/%m/%y %R deadlock error detected"` > /var/log/oscam_restart_log.check Tail -8 /var/log/oscam.log |grep -v grep |grep -c ins40 >/dev/nullĮcho `date "+%d/%m/%y %R ins40 error detected"` > /var/log/oscam_restart_log.check #or if ! ps x | grep -v grep | grep -c oscam_r5893 >/dev/nullĮcho `date "+%d/%m/%y %R process was not working"` > /var/log/oscam_restart_log. If ! ps x | grep -v grep | grep -c /usr/bin/oscam_5893 >/dev/null you can delete remove_tmp from script if you want feedback in /var/log/oscam_restart_log.check if you activate remove-tmp-you will not see the feedback of script - on /var/log/oscam.check-because all the time when the oscam_rs is running, will remove the logsīut the process is running, and you can verify in var/log /messages from KernelĢ.
