Been trying to get this working but no luck
using this script here
#!/bin/sh
process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "Couldn't find oscam running. Restarting server-binary" >> /var/log/oscam.check
nohup /var/bin/oscam >> /var/log/oscam.log &
else
echo "oscam is still OK!" >> /var/log/oscam.check
fi
I am using cccam2.1 & oscam 6359 on gemini image
I have added the above script to var/script and set attributes to 755. I have went into blue panel>services/daemons and started crond. In set up I have added/var/script/OscamCheck.sh to run every 5 mins.
Used a killall command to stop oscam but it has not restarted.Any help appreciated.
using this script here
#!/bin/sh
process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "Couldn't find oscam running. Restarting server-binary" >> /var/log/oscam.check
nohup /var/bin/oscam >> /var/log/oscam.log &
else
echo "oscam is still OK!" >> /var/log/oscam.check
fi
I am using cccam2.1 & oscam 6359 on gemini image
I have added the above script to var/script and set attributes to 755. I have went into blue panel>services/daemons and started crond. In set up I have added/var/script/OscamCheck.sh to run every 5 mins.
Used a killall command to stop oscam but it has not restarted.Any help appreciated.
Comment