Display MoreHi,
As said, when restarting the Vu (with openatv 7.3), Oscam doesn't start. I need to do it manually in the menu. (CAM1)
Don't understand as the 'oscam' file in etc/init seems to be ok
#!/bin/sh
DAEMON=/usr/bin/oscam
STARTCAM="env -i /usr/bin/oscam -b -c /etc/tuxbox/config"
STOPCAM="killall -9 oscam"
DESC="Softcam"
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
$STOPCAM &&
echo -n "starting $DESC: $DAEMON... "
sleep 5
$STARTCAM
echo "done."
;;
stop)
echo -n "stopping $DESC: $DAEMON... "
$STOPCAM
echo "done."
;;
restart)
echo "restarting $DESC: $DAEMON... "
$0 stop
echo "wait..."
sleep 5
$0 start
echo "done."
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0
Did you update this line ?:
CAMNAME="oscam-11719-arm-EMU"
The name of the oscam from init.d file must match the name of the oscam from /usr/bin/ folder; eg: " oscam-11719-arm-EMU"
spelling & the writing of the names must match.
This is my init.d file:
"CAMNAME="oscam-11719-arm-EMU"
remove_tmp() {
rm -rf /tmp/*.info* /tmp/*.tmp* /tmp/*share* /tmp/*.pid* /tmp/*sbox* /tmp/oscam* /tmp/.oscam
}
case "$1" in
start)
ulimit 1024
remove_tmp
/usr/bin/${CAMNAME} --daemon --pidfile /tmp/cam.pid --restart 2 --utf8 &
;;
stop)
killall -9 ${CAMNAME} 2>/dev/null
remove_tmp
;;
restart | reload)
$0 stop
sleep 1
$0 start
;;
version)
echo "${CAMNAME}"
;;
info)
echo "${CAMNAME}"
;;
*)
echo "Usage: $0 start|stop|restart"
exit 1
;;
esac
exit 0"