What's new

OScam oscam check & restart script

guli

Very Special Friend
Significant Contributor
Special Friend
Messages
32
Joined
Sep 23, 2014
Reaction score
30
Points
18
as the heading says this script is tested and yes it works .

as root via putty .


cd /etc

touch oscam.sh

chmod 777 oscam.sh

nano oscam.sh

Code:
Please, Log in or Register to view codes content!
cd /etc

export EDITOR="nano"

crontab -e


Code:
Please, Log in or Register to view codes content!
wait a minute & you have oscam restarted & enjoy Super


 

guli

Very Special Friend
Significant Contributor
Special Friend
Messages
32
Joined
Sep 23, 2014
Reaction score
30
Points
18
this one is by sibuk so thanks to him .

And if you use multiple instances of Oscam on the same server use this .

assuming you have oscam1 and oscam2 in /usr/local/bin

and config files in /usr/local/etc1 and /usr/local/etc2

as root via putty .

cd /etc

touch oscam1.sh

chmod 777 oscam1.sh

nano oscam1.sh


Code:
Please, Log in or Register to view codes content!
cd /etc

export EDITOR="nano"

crontab -e

Code:
Please, Log in or Register to view codes content!
cd /etc

touch oscam2.sh

chmod 777 oscam2.sh

nano oscam2.sh

Code:
Please, Log in or Register to view codes content!

cd /etc

export EDITOR="nano"

crontab -e

Code:
Please, Log in or Register to view codes content!
wait a minute & you have oscam restarted enjoy Super
 

Lakromani

Member
Messages
13
Joined
Sep 14, 2015
Reaction score
7
Points
3
Here is mine version:
I give oscam file the version in the file name, so for me: oscam10852
It also logs to a file every time its restating.

auto.sh
Code:
Please, Log in or Register to view codes content!
 

Top Bottom