Ubuntu Script to restart CCcam if it stops responding

There are 5 replies in this Thread which was already clicked 5,196 times. The last Post () by Mee®kat.

  • here is a small script that will check if your CCcam is running or not and it will restart it if not running



    Save this file in the script folder, you can use any name you like example CCcamcheck.sh


    then if you have crontab set the script to run every 10 mins for example, this crontab only depends on the image you use ofcourse not all images has this function.


    #!/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





    I need help in crontab linux

  • let me know if it works for you sat100...I've yet to find a restart script that either does anything at all or doesn't make the system worse!!


    Well, it looks this dude has been banned for various reasons...anyway i see no need for a cccam restart script..unless your system is messed up so why the need?


    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    /var/bin/./oscam -b &
    /var/bin/./CCcam.x86 &


    exit 0




    [ Read 16 lines ]
    ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
    ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell


    With debian i have used this in the past...albeit after a manual restart...i found 2.0.11 restarted much easier,...


    MK

    Edited once, last by Mee®kat ().

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!