Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > DreamBox > Chat

Chat Discussion, how to auto restart cccam at DreamBox forum; Is there a script that i can use to restart cccam on my dreambox 600s i am running gemini 4.1.0 ...

Reply
 
LinkBack Thread Tools Display Modes
how to auto restart cccam
Old
  (#1)
hitman07
Member
 
hitman07's Avatar
 
Offline
Posts: 68

Level: 7 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 153
Magic: 22 / 4206
Experience: 15%

Thanks: 5
Thanked 4 Times in 4 Posts
Join Date: Aug 2008
how to auto restart cccam - 22-April-2012, 22:56

Is there a script that i can use to restart cccam on my dreambox 600s

i am running gemini 4.1.0 and dont have any crontab on my dcc

any help will be much appreciated.
   
Reply With Quote
Old
  (#2)
usb30
Banned as CardFaker
 
usb30's Avatar
 
Offline
Posts: 41

Level: 5 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 104
Magic: 13 / 1725
Experience: 19%

Thanks: 3
Thanked 2 Times in 1 Post
Join Date: Apr 2012
30-April-2012, 13:13

hi , try pls..

Code:
nothing new, but I decide to place both scripts ( with small my modification in one post;
here is everything you need to start, restart and auto monitor cccam on your Linux server;

I do in this way ( on my linux debian )  everything you need to start / restart / check cccam live

1. to copy cccam binary file to your pc:
1.1 - place file CCcam.x86 (from cccam distrib) to /bin/ directory
1.2 - make file /bin/CCcam.x86 executable ( chmod : 755 )

2. to create cccam startup server startup script:
2.1. create new file  cccam.server (cccam startup script) in /etc/init.d/
2.2. copy / paste this text to new empty file cccam.server:

#! /bin/sh

# /etc/init.d/cccam.server

start() {
echo -n "Starting cccam.server"
/bin/CCcam.x86 -v -t &
sleep 2
echo " : done"
}

stop() {
echo -n $"Stopping cccam.server"
pkill CCcam.x86
sleep 2
echo " : done"
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
;;
esac
exit 0

2.3. make file /etc/init.d/cccam.server executable ( chmod : 755 )

From this point you can test commands :
/etc/init.d/ cccam.server start ( this will start your cccam)
/etc/init.d/ cccam.server stop ( this will stop your cccam)
/etc/init.d/ cccam.server restart ( this will restart your cccam)


3. to create and start cccam live check script:
3.1. create file cccam-live-check , place it to /root directory
3.2. Make this file executable  ( chmod : 755 )
3.3. Place text in this file /root/cccam-live-check inside ( this script will check if cccam is running each 5 minutes, you can change interval with changing value sleep , if you want;
Also you can change text "CCcam was crashed - restarting" and where to write log file ; in my case all crashes I can find in /var/log/cccam-crash.log ):

cd /usr/bin
while [ 1 ];
do
process=`ps auxwww | grep CCcam.x86 | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "CCcam was crashed - restarting" >> /var/log/cccam-crash.log
/etc/init.d/cccam.server restart

else
echo "cccam ok" > /dev/nul 2>&1
sleep 300
fi
done



3.4. edit file /etc/rc.local ( add text)

# CCcam check script
echo -n "Starting cccam-live-check"
/root/cccam-live-check &
echo " : done"

exit 0

3.5. restart your pc ( reboot) , because after reboot script cccam-live-check will start to monitor your cccam server in interval you write in value sleep
   
Reply With Quote
Sponsored Links
Old
  (#3)
hitman07
Member
 
hitman07's Avatar
 
Offline
Posts: 68

Level: 7 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 153
Magic: 22 / 4206
Experience: 15%

Thanks: 5
Thanked 4 Times in 4 Posts
Join Date: Aug 2008
02-May-2012, 14:40

will this work on a dreambox though?
   
Reply With Quote
restart cccam
Old
  (#4)
ljupco1963
Junior Member
 
ljupco1963's Avatar
 
Offline
Posts: 4

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 5
Magic: 1 / 89
Experience: 21%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: May 2012
Location: sk
restart cccam - 14-May-2012, 13:59

is a good this script for restart cccam 214? for dm500s
Quote:
#!/bin/sh
if ps x |grep -v grep |grep -c CCcam >/dev/null
then
echo "cccam... ok"
else
echo "cccam... restarting"
/var/bin/CCcam_2.0.8 &
fi
   
Reply With Quote
Old
  (#5)
dj999
Banned
 
dj999's Avatar
 
Offline
Posts: 60

Level: 6 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 140
Magic: 20 / 3617
Experience: 62%

Thanks: 5
Thanked 4 Times in 4 Posts
Join Date: Feb 2009
Age: 46
25-May-2012, 01:06

will any of these work on a dreambox 7020 with cccam2011+newcs165+phoenix cos mine has a mind of its own when the cccam wants to stop working
   
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox