Jump to content


Photo

Script to restart cccam daily


  • Please log in to reply
2 replies to this topic

#1 luismgh

  • Member
  • 10 posts

0
Neutral

Posted 31 October 2013 - 10:36

Hi,

 

I'm a newbie. Have a VU+ Duo. 

Can anyone explain me how to make a script to restart my cccam daily, for example at 06 Am?

 

Regards,



Re: Script to restart cccam daily #2 catastrofus

  • Senior Member
  • 3,482 posts

+43
Good

Posted 1 November 2013 - 10:54

Create a script (e.g. /home/root/softcam.restart) with these contents:

 

#!/bin/bash

export PATH=${PATH}:/bin:/sbin

/etc/init.d/softcam stop
sleep 4
/etc/init.d/softcam start

 

and make it executable: chmod 744 /home/root/softcam.restart <enter>

 

Install busybox-cron: opkg install busybox-cron <enter>

 

Execute crontab -e <enter>

Press <i> and insert the next line: 00 06 * * * /home/root/softcam.restart

Press <esc> and than :wq<enter>


2 x vu+ultimo4k ((nb & 9.0r) dvb-c fbc + 1 dvb-s2) + een vu+duo4k ((nb) fallbackclient) met een Synology ds214+ (2 x 6 TB) op DSM 7.1.1 in ziggo oost (voormalig @Home) + A1/A2/A3/HB (TechniSat)
 


Re: Script to restart cccam daily #3 Pr2

  • PLi® Contributor
  • 6,197 posts

+261
Excellent

Posted 1 November 2013 - 14:01

Hi,

 

Yes but can normally also simply call:  /etc/init.d/softcam restart

 

Pr2


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
 



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users