Jump to content


Photo

oscam and cccam startup script problem


  • Please log in to reply
9 replies to this topic

#1 kannanni

  • Member
  • 31 posts

+1
Neutral

Posted 30 October 2011 - 09:56

Hi,


i would like to use oscam and cccam as a combo option on latest pli 2.1.

everytime i reboot my box i cant get them to work, the only way to get them working is to stop them both manually and restart them oscam first as a card server and cccam as a softcam. they start working but still i cannot access webinterfaces from my pc.

i think there is something wrong with the startup scripts of oscam and cccam inside pli... i installed them both from addons menu in pli.
i might be wrong but it seems that they are both starting or trying to start at the same time ??


there's nothing wrong with my config files as i have no problems with the same setup on latest blackhole image: they start as they they should: oscam starts first and cccam after..


im not very good with creating scripts, so can someone please help me and post here a working script so i can just go and replace it via ftp..

also there are 2 scripst created for each of them, oscam and cccam, which one do i replace/edit ?



cheers

Re: oscam and cccam startup script problem #2 kannanni

  • Member
  • 31 posts

+1
Neutral

Posted 30 October 2011 - 11:19

wright, i found this script, but not sure it's good, and also wich script do i replace, oscam's or cccam's script ?




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

Re: oscam and cccam startup script problem #3 littlesat

  • PLi® Core member
  • 57,117 posts

+698
Excellent

Posted 30 October 2011 - 11:32

Why going for this hybrid way by running Oscam and CCcam on the same box when only Oscam can do both??

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: oscam and cccam startup script problem #4 Viper780

  • Member
  • 9 posts

0
Neutral

Posted 7 November 2011 - 15:59

Oscam can't do booth and in some situations it is the only way that you use oscam only as cardreader and an other cam for the rest

Re: oscam and cccam startup script problem #5 Alias1

  • Senior Member
  • 575 posts

+13
Neutral

Posted 7 November 2011 - 20:39

Oscam can't do booth and in some situations it is the only way that you use oscam only as cardreader and an other cam for the rest

Yes it can

DM800se Vu+Duo ET-9000 Vu+Ultimo


Re: oscam and cccam startup script problem #6 jakas

  • Senior Member
  • 422 posts

+2
Neutral

Posted 12 November 2011 - 15:57

I use this:


#!/bin/sh
clear

/etc/init.d/cardserver.oscam restart
sleep 2
/etc/init.d/softcam.CCcam restart
sleep 2
exit 0

Re: oscam and cccam startup script problem #7 Maki_SM

  • Member
  • 10 posts

0
Neutral

Posted 12 November 2011 - 23:14

or just rename sofcam.oscam to cardserver.oscam
and
in sofcam.cccam script add sleep 5
example:


start)
sleep 5
exec start-stop-daemon -S -x /usr/bin/cccam

After you edit in softacm / ci just restart both ( cardserver and sofcam )

Re: oscam and cccam startup script problem #8 kokar

  • Member
  • 11 posts

0
Neutral

Posted 14 August 2012 - 22:33

Why going for this hybrid way by running Oscam and CCcam on the same box when only Oscam can do both??


Would u pls explain how!
regards
kokar

Re: oscam and cccam startup script problem #9 muzzy

  • Member
  • 3 posts

0
Neutral

Posted 11 December 2016 - 07:08

Hi there i am sort of new to all this so please forgive my ignorance but if I wanted to have oscam start first and then have a choice of cccam or mgcamd start second or 3rd which files should I edit exactly and which what script would go in the files. I have been at this now for 2 weeks and still unable to get it right on openpli 4.0

Re: oscam and cccam startup script problem #10 Pr2

  • PLi® Contributor
  • 6,178 posts

+261
Excellent

Posted 11 December 2016 - 13:54

This is a non-sense to run both softcam at the same time, OScam does it all by itself.

 

If you think that some features are missing in OScam compared to CCcam and mgcamd please report them on streamboard and I am quite sure that a solution already exists in OScam.


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users