SCRIPT TO AUTOSTART OSCAM WHEN IT STOPS AND HOW TO RUN CRONJOB ON ENIGMA 2
Oscam and CCcam which are client emu, could sometimes stop working or crash and therefore your Cline or Nline will go off, and you would have to restart the box or from panel.
However, with a script, and cronjob……Oscam/CCcam will be monitored and when it goes off, cron will restart it immediately. This is how to;
The script contains commands that check if CCcam/Oscam is running and if it isn’t it will restart it whereas cronjob tells at what frequency should the script check on Oscam/CCcam. So cronjob can say every 1 minute check if CCcam/Oscam is running if not restart it.
Here is the script;
/usr/bin/ is the location of your bin fine, very very important
I have named it oscamcheck.sh and placed in /usr/script/ chmod 755
Now install cron manager, if not already with the image, you can go to pluginsdownload / extensions and cronmanager, download and install the latest version.
Now you would have to check if cron is installed and really running
telnet to your box and type;
Now we have confirmed cronmanager is working, so let’s stop
it
Now we need to create the root file chmod 755
The root file is found in /etc/cron/crontabs/root if the file is already there, then you have to edit, if not create one with a Unix editor like notepad++
Put this line in root
The line will check every minute if Oscam is running if not the script will restart Oscam.
Now you can check if the script is really working
Type
And oscam will stop working and your line will freeze
Now restart the script from telnet and occam will start working again
And oscam starts working again…….
Let’s finally put these last commands and let cronmanager start his work
Now everything will be working very fine
And your oscam will never ever sleep
Enjoy sweetness