Jump to content


Photo

cccam script help

delay cccam start

  • Please log in to reply
8 replies to this topic

#1 mark_hopley

  • Member
  • 19 posts

0
Neutral

Posted 22 July 2012 - 10:16

I am using a DM500HD as my server. I use oscam to read card but because cccam starts before oscam it accesses the cardreader and prevents oscam from using it.

I am trying to delay the start of ccccam to enable oscam to use the cardreader before cccam. I have added a sleep line in the softcam.cccam209 script as shown here

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

However this just seems to stop cccam from running at all. Is there any way I can acheive oscam running first?

Re: cccam script help #2 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 22 July 2012 - 10:27

The proper way to change the startup sequence is to change the numeric postfix in the /etc/rc.? directories.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: cccam script help #3 mark_hopley

  • Member
  • 19 posts

0
Neutral

Posted 22 July 2012 - 10:42

Hi. Thanks for response

I see these directories but am not sure what you mean by change the numeric postfix

Re: cccam script help #4 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 22 July 2012 - 10:52

These directories contain symbolic links to init scripts in /etc/init.d/. Their names start with a specifier startup or showdown ("S" or "K"), then a number ("20" etc.) which signifies the priority and then a name which is a description. If you rename the symbolic link from e.g. S20service to S50service, it will start later in the boot process, depending on the priorities of the other links.

Note: the box normally starts in run level 3, so you need to look in /etc/rc3.d
Note: the symlinks will get overwritten when the package is updated

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: cccam script help #5 mark_hopley

  • Member
  • 19 posts

0
Neutral

Posted 22 July 2012 - 11:06

Hi

I have changed the softcam folder in all rc.?d folders from 50 to 999 but has made no difference. Presumably this also affects the cardserver aspect?

Re: cccam script help #6 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 22 July 2012 - 11:10

The number needs to be two digits.

Also maybe cccam has more than one init scripts, I don't know, I don't use it.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: cccam script help #7 mark_hopley

  • Member
  • 19 posts

0
Neutral

Posted 23 July 2012 - 09:59

Hi

It does not seem to make any difference. I have changed all softcam folders from 50 to 91 and in the folder rcS.d there was one called cardserver which I changed from 45 to 15. Unfortunately this has not changed anything.

Are there any other ways I can achieve this?

Re: cccam script help #8 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 23 July 2012 - 10:01

use a more recent CCcam version, and add

SCIDEVICES: 0

to your config

Re: cccam script help #9 mark_hopley

  • Member
  • 19 posts

0
Neutral

Posted 24 July 2012 - 17:50

Hi

To use this it needs to be 2.20 or above. I am not comfortable with using anything over 2.14


3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users