Register

Welcome to the RDI-Board Community.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


Donate Now Goal amount for this month: 100 EUR, Received: 100 EUR (100%)
Donate to support this site...

Results 1 to 13 of 13
  1. #1
    Senior Member Expert
    Join Date
    Jun 2006
    Location
    popescu bogdan PE FACEBOOK
    Posts
    1,096
    Posts Thanks / Likes

    Default ajutor Script Restart pentru cccam la dreambox

    poate cineva da un script usor de folosit
    am incercat


    asa
    am pus un fisier numit ccheck.sh

    in dir / script / din cccam cu DCC
    am setat in dream CROND running la 10 minutes
    si nu merge!
    ceva sfaturi ?

    nu am pus bine ceva?


    #!/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.9 &
    fi



    ASA AM FACUT CUM AM CITIT si totusi nu merge!

    here is the guide for Gemini 4.2

    Prepare this file in notepad and save it as ccheck.sh

    #!/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.9 &
    fi



    ftp the mentioned file to the dreambox into /var/script

    set the file attributes to 755.

    When the file is sent all must be done in the dm menu, so follow below steps:

    1. Press Blue button
    2. Press Extra/Setup
    3. Press Services/Daemon
    4. goto Crond section and press Setup
    5. Press New
    6. Now you have to decide how frequent you want this script to run example every 30mins ( In this case make sure you only have 30 in the minutes section)
    7. go on the last line Command and press ok ( A selection window should open)
    8. Select the script from the list, in this case you should look for ccheck.sh or whatever name you used earlier to save it. press ok when you find the script and should return to the previous menu.
    9. Press Save once more and then exit.
    10. if all was done ok it should check if CCcam is running and if not it will start it for you You can test this by changing to common interface and wait for the ammount of minutes you specified earlier.

    Good Luck !

  2. #2
    Junior Member Teacher
    Join Date
    Dec 2007
    Location
    Wels
    Posts
    195
    Posts Thanks / Likes

    Thumbs up

    incearca cu asta ptr CCcam_2.0.11

    #!/bin/sh
    SCRIPTNAME="CCcam_2.0.11_cam.sh"
    SCRIPTPATH="/var/script"
    CHECKNAME="check.txt"
    LOGFILE="CCcam_restart_log.txt"
    TELNETPORT="16000"
    wall "CCcam Check run"
    echo info|nc 127.0.0.1 $TELNETPORT >>/tmp/$CHECKNAME
    set $(ls -s /tmp/$CHECKNAME)
    if [ "$1" = "0" ];
    then
    echo $(date "+%d.%m.%y|%H:%M:%S|CCcam makes a restart") >>/tmp/$LOGFILE
    $SCRIPTPATH/$SCRIPTNAME stop
    sleep 5
    $SCRIPTPATH/$SCRIPTNAME start
    else
    echo "all fine "
    fi
    rm /tmp/$CHECKNAME
    exit

    bafta!
    Last edited by nelke; 8th November 2009 at 18:42.

  3. #3
    Membrana Expert
    Join Date
    Aug 2005
    Location
    Tomis Nord
    Posts
    1,604
    Posts Thanks / Likes

    Default

    Pai cum sa mearga asa cum ai pus tu?
    Presupun ca fisierul tau cccam din var/bin este este CCcam.
    De ce lansezi CCcam_2.0.9 ?

    Modifica linia asta " /var/bin/CCcam_2.0.9 & " asa :

    /var/bin/CCcam &

    Bafta.
    spersanutiiamulttimpsacitesticanuamsemnatura

  4. #4
    Junior Member Teacher
    Join Date
    Dec 2007
    Location
    Wels
    Posts
    195
    Posts Thanks / Likes

    Exclamation

    Quote Originally Posted by nelke View Post
    incearca cu asta ptr CCcam_2.0.11
    acest script verifica la fiecare 5 min daca CCcamul ruleaza daca nu ..face restart automat!

  5. #5
    Senior Member Expert
    Join Date
    Jun 2006
    Location
    popescu bogdan PE FACEBOOK
    Posts
    1,096
    Posts Thanks / Likes

    Default ok

    Quote Originally Posted by pytonu View Post
    Pai cum sa mearga asa cum ai pus tu?
    Presupun ca fisierul tau cccam din var/bin este este CCcam.
    De ce lansezi CCcam_2.0.9 ?

    Modifica linia asta " /var/bin/CCcam_2.0.9 & " asa :

    /var/bin/CCcam &

    Bafta.

    o sa pun
    sa vad

    #!/bin/sh
    if ps x |grep -v grep |grep -c CCcam >/dev/null
    then
    echo "cccam... ok"
    else
    echo "cccam... restarting"
    /var/bin/CCcam &
    fi

  6. #6
    Junior Member Teacher
    RDI - Board Default Avatar

    Join Date
    Sep 2008
    Posts
    163
    Posts Thanks / Likes

    Default

    salut,pentru imaginea Nemesis 4.4 are cineva un script?daca da,il rog sa-l posteze.multumesc anticipat.

  7. #7
    Junior Member Teacher
    Join Date
    Oct 2007
    Location
    Resita
    Posts
    239
    Posts Thanks / Likes

    Default

    Quote Originally Posted by mihayll View Post
    salut,pentru imaginea Nemesis 4.4 are cineva un script?daca da,il rog sa-l posteze.multumesc anticipat.
    Asta folosesc eu pe Nemesis 4.4 Borsalino.Face un restart zilnic la DM la ora 4:30


    -Autoreboot skripta za edg nemesis-


    1. ukljuciti crond (plava tipka (addons), start-stop programs, enable crond (zelena kvacica))
    2. staviti u var/tuxbox/plugins skriptu, imenujte je kako zelite, moja je reboot_timer.sh

    skripta izgleda ovako:

    #!/bin/sh
    wget -O /dev/null http://root:[email protected]/cgi-b...command=reboot

    atributi na 755
    vaspass - tu upisite vasu lozinku

    3. u var/spool/cron/crontab stavite file "root" sljedeceg sadrzaja:

    30 4 * * * /bin/sh /var/tuxbox/plugins/reboot_timer.sh start /dev/null
    40 4 * * * /bin/wget -q http://root:[email protected]/cgi-b...ommand=standby -O /var/log/output
    45 4* * * /sbin/rdate -s time.mit.edu

    atributi na 755.

    u 4 i 30 dream ce se rebootati, u 4:40 otici ce u stand by, a u 4:45 ce se podesiti sat..naravno mozete podesiti vremena kako vama pasu..
    pazite da u prvoj liniji bude ime vase skripte (moja je ponavljam reboot_timer.sh.)
    u drugoj liniji opet stavite vas password

    ne zaboravite rucno rebootat dream kada sve ovo unesete! prije autoreboota mislim da dream mora biti na standbyu.

    ovo provjereno radi i jako je korisno ako vas nece biti doma vise dana, a dream koristite kao server.

    Pentru verificarea/restartare CCCam folosesc urmatorul script

    Fisier emustarter:

    #! /bin/sh
    if ps | grep -v grep | grep -c CCcam_2.1.1 >/dev/null
    then
    echo "CCcam is OK"
    else
    echo "CCcam VIRKER IKKJE"
    echo "Restarting CCcam"
    /var/bin/CCcam_2.1.1
    fi
    Fisier root:

    */2 * * * * /bin/sh /var/script/emustarter.sh start /dev/null


    Instructiunile de instalare le ai aici:

    emustarter.sh file attachments from the first goes in var / script, the rights to 755, change the version of your cccama in two places! my for cccam 2.1.1
    root file goes in / var / spool / cron / crontabs, the rights to 755
    include the crond in blue pannelli

    do reboot the system when this is all put.

    Please check the right script to put on the common interface for the two minute cccam be planned. dream remains on the common interface (as in not be dropped but he had deliberately "silent"), but CS does. put on cccam and normally will continue to work, just be a few seconds, the majority of servers in your cccam info, but customers remain and uptime does not stop but goes further. in my root file is put to script checks dal cccam for every 2 minutes, if not to lift the ga ..

    dal testing the script works like this:

    in telnet:

    cd var
    cd script
    . / emustarter.sh

    should write Cccam is ok

    Script works in combination with autoreboot script for Nemesis. she is already hooked up somewhere in the forum. You can find it and in the second attachementu. change "vaspass in your actual DreamBox password. in the attachment are all the instructions.

    if you want to both scripts should work together to put the root file attachments from the third( se inlocueste fisierul root din / var / spool / cron / crontabs cu fisierul root2) ! "vasdreamboxpass" you change the password, the rights to 755, reboot and that's it!

    this all had been tested on dm500s and EDG Nemesis 4.4



    Sper sa te descurci.
    Resita,DM500s + HH Strong 2100 + offset 0.9 m

  8. #8
    Moderator Expert
    Join Date
    Jul 2006
    Location
    blowfish me....
    Posts
    2,474
    Posts Thanks / Likes

    Default

    toate bune , testate si frumoase , dar fara rost
    are rost cand schimbi lista de canale in fiecare zi si oricum ii dai restart?
    cand adaugi peeri in fiecare zi , sau ii cureti?
    sau cand pur si simplu cel putin odata la 2 zile bagi restart?
    ai cumva vreun server ascuns pin debara ce nu sufara amanare , si e uptinde de vreo saptamana? ai peeri de te sapa pe la spate? nu cred..........

  9. #9
    Membrana Expert
    Join Date
    Aug 2005
    Location
    Tomis Nord
    Posts
    1,604
    Posts Thanks / Likes

    Default

    Cam asa e. Nu prea au rost scripturile de reboot sau restart cccam in momentul in care folosesti zilnic aparatul.

    In schimb devin necesare daca pleci in concediu si dupa cateva zile sigur se va bloca cccamul ...pentru ca asta e. Se blocheaza si nimeni nu stie de ce.
    spersanutiiamulttimpsacitesticanuamsemnatura

  10. #10
    Junior Member Teacher
    RDI - Board Default Avatar

    Join Date
    Feb 2009
    Posts
    142
    Posts Thanks / Likes

    Default

    ma poate ajuta cineva cu un script pentru restart cccam pentru versiunea 2.1.2 sau inferioara..pe PLi Jade3 si dreambox500s?
    DM500+DM800 si nimic mai mult

  11. #11
    Junior Member Teacher
    RDI - Board Default Avatar

    Join Date
    Jun 2004
    Location
    Romania
    Posts
    132
    Posts Thanks / Likes

    Default

    SifTeam au acest lucru implementat aceste lucruri in imagine :restart cam, restart openvpn,restart dream, autostandby in caz de intrerupere a curentului,firewall,openvpn, etc..

  12. #12
    Member Mentor
    Join Date
    Dec 2007
    Location
    Milano sau Timisoara, nu-s sigur
    Posts
    793
    Posts Thanks / Likes

    Default

    Eu chiar am un dream 500 care merge ca si server m non stop. e in pivnitam nu ma uit la el, ma uit la dm800....si uit sa-i dau restart...
    chiar mi-sr folosi vreun script de mai sus...
    Va rog testati unul si cel care merge postatil aici ...ca vreau si eu )
    Merci mult.

  13. #13
    Gold Member Expert
    Join Date
    Jan 1970
    Posts
    3,358
    Posts Thanks / Likes

    Default

    Search stiti sa dati ? ...e a treia din dreapta ...

    http://forum.paytv.ro/showthread.php?t=72547

    Scriptul postat de mine acolo merge perfect il folosesc de cel putin 6 luni si nu m-a dezamagit inca !

 

 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Back to Top