Hi Guys,
Hope someone can help me please.
My VU+ Duo cam drops out every so often.
Can someone help me with a script that will auto restart it if it stops?
Thanks.
Regards,
Jules.
Hi Guys,
Hope someone can help me please.
My VU+ Duo cam drops out every so often.
Can someone help me with a script that will auto restart it if it stops?
Thanks.
Regards,
Jules.
Make a script similar to this:
The script above checks to see if oscam is running - if not it executes: /etc/oscam/oscam.sh startCode:#!/bin/sh # DESCRIPTION=This script starts oscam on boot & checks it's running every 30 seconds. #-------------------------------- # Check Oscam Is Running SERVICE='oscam' while true do if ps w | grep -v grep | grep $SERVICE > /dev/null then echo "oscam is running" else echo "oscam is not running - starting now" cd / /etc/oscam/oscam.sh start fi sleep 30 done
Change that bit to execute your own script that runs oscam.
Once done if you want this script to run at boot time - put it here:
/etc/rc3.d/S100oscamcheck.sh
Last edited by mrdude; 23-11-2015 at 01:40 PM.
Thanks for reply mrdude.
I am using CCcam.
Do I use your script and just change Oscam to CCcam please?
Thanks for this ozzsurf,
What do I need to remove again please?
Sorry, silly me, I understand now thanks.
What does the * * * * indicate?
Thanks for advice
Hi ozzsrf I have installed your attached file to user/script folder.
do I now add this line with ftp please:
*/1 * * * * /usr/script/cccam.check.sh
Thanks,
Jules.
Hi, I am using BH image
Thanks ozzsurf,
looking at cam menu, this is my cam: CCcam_2.3.0
please can you confirm I put your file "cccam.check.sh"
into usr/script folder
And I put line "*/1 * * * * /usr/script/cccam.check.sh"
into usr/bin as a txt file?
Thanks
Thanks very much.
I can see in these folders there is already this line:
*/5 * * * * /usr/script/./ccheck.sh
Do I leave that in?
Thanks I have done that. So now I only have that one line in bh.cron and root.
Is that correct?
Thanks for your help ozzsurf, much appreciated!
I suppose the only way to test if working on mine now is to wait and see?
Just another question, will this use a lot of memory in my box, or can I change the check time by changing the number of minutes in:
*/1 * * * * /usr/script/cccam.1min-check.sh
Or am I best just leaving as it is?
Thanks.
You can test it by tel-netting into your box and killing CCcam then check to see if it starts again:
Telnet command to see if CCcam is runnning:
Telnet command to kill CCcamCode:cd / ps -A
Wait and enter the fist command again to see if the CCcam process starts automatically.Code:cd / killall -9 CCcam or killall -9 CCcam_2.3.0
Last edited by mrdude; 23-11-2015 at 10:31 PM.
if using vix, there is a auto start on start up, but if the cam is dropping out dueing the day for no reason, try a new one
Sorry seamouse telnet rejects these commands
Hi ozzsurf,
Thanks for reply.
I just killed cam but it did not restart.
Looked in usr/bin and ccam is like this:
"CCcam_2.3.0"
Should have worked?
Thanks ozzsurf have checked and I can see that the code line you sent before was:
*/1 * * * * /usr/script/cccam.1min.check.sh
The one you just showed me is:
*/1 * * * * /usr/script/cccam.1min-check.sh
diffrerence is "-" and "." after "1min, can you see?
will that make a difference?
Did you see you put a "-" instead "." ?
See the difference in the 2 lines you sent:
*/1 * * * * /usr/script/cccam.1min.check.sh
*/1 * * * * /usr/script/cccam.1min-check.sh
Cheers, Jules.
Last edited by Jules; 24-11-2015 at 12:12 AM.
I just need to change the . to a - after 1min.
Do you see just before the word "check"?
*/1 * * * * /usr/script/cccam.1min.check.sh
*/1 * * * * /usr/script/cccam.1min-check.sh
Last edited by Jules; 24-11-2015 at 12:21 AM.
Bookmarks