oscam cccam auto restart script

There are 3 replies in this Thread which was already clicked 5,518 times. The last Post () by Lakromani.

  • Hi All, I know this has been asked before, but can someone please point me to the location of the autorestart scripts for oscam and cccam. I also need the location of where to put them and how to check if they are running?
    The reason I ask is that I have just rebuilt the server using ubuntu 12.04, and the auto scrips on this site, but every morning, I check, and have to manually stop cccam then oscam to get everyone back online again. Any ideas??

  • Here is to one I use in Ubuntu.


    /var/bin/auto.sh

    Bash
    #!/bin/bash
    # Start oscam if its not running
    ver=10xxx
    pidof  oscam$ver >/dev/null
    if [ $? -ne 0 ] ; then
            echo "Restarting OScam Server $ver : $(date)" >> /var/log/auto.txt
            /var/bin/oscam$ver -b
    fi


    Remember to set "ver" to the version you are running.


    Add script to Crontab to run it automatically.
    Type "crontav -e" and add:

    Code
    * * * * * /var/bin/auto.sh > /dev/null 2>&1


    This will den test if OScam is running onece every minute.
    It also starts OSCam at reboot.

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

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