Чат

🕑 ↗
За да пишеш, трябва да си влязъл в профила си.

CCcam Check-Script

Започната от Sharp987, 07-04-2009, 20:42

« назад - напред »

0 Потребители и 1 гост преглеждат тази тема.

Sharp987

Das Script überprüft, ob CCcam läuft oder nicht...
wenn´s nicht läuft wird´s gestartet, wenn´s läuft dann OK

Die CCcam Version müßt ihr natürlich im Skript an eure Version anpassen, dass ganze noch mit nem CronManager laufen lassen und gut is. (wer´s braucht)

Schaltet auf eine andere Cam, dann könnt ihr testen, ob automatisch auf CCcam umgeschaltet wird

translate.google:

Сценарият проверки дали CCcam е тичане или не ...  
 Ако не вървят се стартира, когато се работи добре  

 В CCcam версия, която трябва да разбира в скрипта за да персонализирате своя версия, все още с тази цялата nem CronManager тичам и добре е. (Who's нужди)

 Ключове към различен CAM, тогава можете да пробвате, ако CCcam автоматично включване

                                      CCcamcheck.rar    

Sharp987

CheckCccam

This script will work on most linux dist. including enigma1/2.
The script will check if the CCCam proccess are running with a crontab and restart CCcam if stopped for some reason.

Upload checkcccam.sh and place it under /bin. chmod with 755


Modify these 3 lines inside checkccam.sh to fit your local settings for paths and name of cccam file:

CCCAM_CONFIG_FILE_PATH="/etc"
This is the path where your Cccam.cfg file are located

CCCAM_EXECUTABLE_PATH="/bin"
This is the path where your Cccam.ppc/Cccam.x86 file are located

NAME_OFF_CCCAM_EXECUTABLE="CCcam.x86"
This is the name of your Cccam bin.file.



Then make a crontab to run this script every 1 min.:

# crontab -e

Insert this line and save the file:
* * * * * /bin/checkcccam.sh


Try to kill your cccam process and check that it starts again in max. 1 min.

Чък Норис

Ето още един скрипт без използване на кронд, който работи безотказно и прави невъзможно спирането на cccam-a.

ЦитатПръвоначално написано от http://www.eurocardsharing.com/f163/cccam-check-script-out-crond-108138

Hey!
I Thank my dear friend Shalafi for this great script.
It works perfect with all CCcam , in all image and it checks always if CCcam is running with out crond.
And if by some reason CCcam has crashed, wich it does sometimes, it auto executes the CCcam instead of leaving you offline for hours.... :)
It dont take any special cpu usage because works with out crond and it is easy to add to your server.
 
For the intrested here is the code:
 
 
 cd /usr/bin
while [ 1 ];
do
process=`ps auxwww | grep cccamd-real | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "Couldn't find CCcam  running. Restarting server-binary" >> /tmp/cccam.check
      /var/bin/cccamd-real
else
echo "CCcam is still OK!" >> /dev/null      
fi
done

 
*NOTE!* My CCcam is in /var/bin and if your file is in a other folder like your home dir please edit the .sh file and change the path to your file.
 
 Installing the script:
1. Log into your server using ftp software.
2. Rename the CCcam file to cccamd-real. Example if it is CCcam_2.0.11, reaname to cccamd-real.
3. Make a new text file with the up lines inside in /var/bin ( there where is located the cccamd-real )called with the name of CCcam. Example if the name of softcam waz CCcam_2.0.11 before rename it to cccamd-real, then the name of text file (script) must be CCcam_2.0.11.
4. Set chmod to 755.
5. Reboot.
6. Killall cccamd -real to test if it start again .
8. Sit back, relax, and enjoy the quality of cardsharing :) Now i can do other things without worring if CCcam has crashed.
 
Hope you will be satisfied with my little guide and expect more goodies from me :)
 
Best Regards Bilis.            
При спиране или забиване на cccam-a, той се стартира моментално отново.

Чък Норис

#3
Да преведа в общи линий горният си пост.
Преименувате досегашният си ццкам(който се намира в /var/bin за енигна 1 и в /usr/bin зa enigma 2), независимо коя версия е бил, в cccamd-real, правите си нов файл CCcam_2.0.11(ако сте с ццкам 2.0.11) и в него поставяте реовете:

[B]cd /var/bin
while [ 1 ];
do
process=`ps auxwww | grep cccamd-real | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "Couldn't find CCcam  running. Restarting server-binary" >> /tmp/cccam.check
/var/bin/cccamd-real
else
echo "CCcam is still OK!" >> /dev/null      
fi
done [/B]
новият файл също го поставяте в /var/bin(/usr/bin за енигма 2), задават му се права 755 и рестартирате дрийма.
За да проверите дали работи новия скрипт, в телнет
cd /var/bin
ls
cccamd-real killall
и проверявате дали работи ццкама.
Важно уточнение е, че според някои колеги този скрипт бави приемникът, аз използвам за сървър PC и нямам грижи.

ТИНТИН

CCCam restart script Gemini image DM

this is a script-program that controls if and how your CCcam works, this script is made for
CCcam 2.0.11
if your CCcam crash down this script will make that you CCcam works again
this script is made for gemini image
start your crond in gemini image and configure your crond to check up every 15 minutes the work of CCcam
put the part of this script in their folders - var/bin,etc,script
if you use other version of CCcam please edit in this script folders and put the CCcam that you use
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." -- Dennis M. Ritchie

SatShop.bg
Ъплоуд център DishPointer Сателитни изстрелвания