Jump to content


Andr705

Member Since 7 Jan 2015
Offline Last Active 30 Mar 2018 16:17
-----

#476522 Oscam does not start automatically

Posted by Andr705 on 18 February 2015 - 18:34

Hello , try this one:

#!/bin/sh
case "$1" in
start)
    ulimit -s 1024
    sleep 3
    exec start-stop-daemon -S -x /usr/bin/oscam -- -b -c /etc/tuxbox/config/oscam -r 2
    ;;
stop)
    exec start-stop-daemon -K -R 2 -x /usr/bin/oscam
    ;;
restart|reload)
    $0 stop
    sleep 1
    $0 start
    ;;
version)
    echo "svn10134"
    ;;
info)
    echo "Oscam"
    ;;
*)
    echo "Usage: $0 start|stop|restart"
    exit 1
    ;;
esac
exit 0


if not working pls replace in start section this line:

    exec start-stop-daemon -S -x /usr/bin/oscam -- -c /etc/tuxbox/config/oscam -r 2

by
    exec start-stop-daemon -S -x /usr/bin/oscam --config-dir /etc/tuxbox/config/oscam -restart 2


good luck ....