[COLOR=#333333]#!/bin/sh[/COLOR]
[COLOR=#333333]process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`[/COLOR]
[COLOR=#333333]if [ -z "$process" ]; then[/COLOR]
[COLOR=#333333][/COLOR][COLOR=#ff0000]#[/COLOR][COLOR=#333333]echo "Couldn't find oscam running. Restarting server-binary" >> /var/log/oscam.check[/COLOR]
[COLOR=#333333]nohup /var/bin/oscam >> /var/log/oscam.log &[/COLOR]
[COLOR=#333333]else[/COLOR]
[COLOR=#333333][/COLOR][COLOR=#ff0000]#[/COLOR][COLOR=#333333]echo "oscam is still OK!" >> /var/log/oscam.check[/COLOR]
[COLOR=#333333]fi[/COLOR]