Quantcast
Channel: [EN] Enduser support
Viewing all articles
Browse latest Browse all 10558

Oscam does not start automatically

$
0
0

Hi,

I have two softcams installed on VU+ Solo 2: CCcam and oscam. 

The first one starts automatically but for oscam only starts when I start it from telnet with /usr/bin/oscam command.

I had a look at /etc/init.d/ and I can see the following two files which differ mainly in what I marked red.

 

softcam.CCcam:

 

#!/bin/sh
case "$1" in
start)
    ulimit -s 1024
    exec start-stop-daemon -S -x /usr/bin/CCcam
    ;;
stop)
    exec start-stop-daemon -K -R 2 -x /usr/bin/CCcam
    ;;
restart|reload)
    $0 stop
    sleep 1
    $0 start
    ;;
version)
    echo "2.3.0"
    ;;
info)
    echo "CCcam 2.3.0"
    ;;
*)
    echo "Usage: $0 start|stop|restart"
    exit 1
    ;;
esac
exit 0
 

 

softcam.oscam:

 

#!/bin/sh
case "$1" in
start)
    ulimit -s 1024
    /usr/bin/oscam --config-dir /etc/tuxbox/config/oscam --daemon --pidfile /tmp/oscam.pid --restart 2 --utf8
    ;;
stop)
    kill `cat /tmp/oscam.pid` 2> /dev/null
    ;;
restart|reload)
    $0 stop
    sleep 1
    $0 start
    ;;
version)
    echo "svn10134"
    ;;
info)
    echo "oscam svn10134"
    ;;
*)
    echo "Usage: $0 start|stop|restart"
    exit 1
    ;;
esac
exit 0
 

 

How can I correct the second file? Or anything else I need to do?

As I said, /usr/bin/oscam from telnet starts oscam without problems.


Viewing all articles
Browse latest Browse all 10558

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>