Jump to content


Photo

Oscam does not start automatically


  • Please log in to reply
3 replies to this topic

#1 Robinson

  • Senior Member
  • 2,621 posts

+30
Good

Posted 18 February 2015 - 13:03

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.


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: Oscam does not start automatically #2 dniestre

  • Senior Member
  • 28 posts

+3
Neutral

Posted 18 February 2015 - 16:15

give a try to this script:

 

http://forums.openpl...more-universal/

 

regards



Re: Oscam does not start automatically #3 Andr705

  • Member
  • 21 posts

+1
Neutral

Posted 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 ....
 



Re: Oscam does not start automatically #4 Robinson

  • Senior Member
  • 2,621 posts

+30
Good

Posted 19 February 2015 - 13:25

Thanks guys.


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users