I found a few but none works for me....I need one that can restart me Oscam-CCcam server every night. It's for a Vu+ Duo with BH image.
No check script, just stop/start i right order. Just for emptying cache memory.....Can someone point me in right direction?
This one did'nt work for me. http://linuxsat-support.com/showthread.php?t=4427
It hungs either Oscam or CCcam, don't know which or why...
QuoteDisplay More
#!/bin/sh
remove_tmp () {
rm -rf /tmp/ecm.info /tmp/pid.info /tmp/cardinfo
}
case "$1" in
start)
remove_tmp
/var/bin/oscam &
sleep 15
/var/bin/CCcam &
;;
stop)
touch /tmp/CCcam.kill
sleep 5
killall -9 CCcam oscam 2>/dev/null
sleep 2
remove_tmp
;;
*)
$0 stop
exit 1
;;
esac
exit 0
Can this script be modified for my needs (stop both cams, start both cams)?
http://linuxsat-support.com/showthread.php?t=5206
master G
You're expert at these things....
Sorry, but I'm still new to Linux..