Better late then never
But there is no need to make any kind of script to stop Oscam daily.
If you already have the checkoscam.sh script. you can create a crontab -e to the checkoscam script first
lets say example : script name checkoscam.sh
crontab -e and add the following
Quote*/1 * * * * /rootpath to your directory folder where checkoscam.sh script is example /usr/local/script/checkoscam.sh
( this way it will execut the checkoscam script everyminute and will start oscam if stopped.
now lets say for instance you want to restart your Oscam every single day at a specific time on your debian machine its nice and easy also
to restart oscam lets say example every 6AM each day
crontab -e and add the following:
Quote00 06 * * * killall -9 oscam
(this will stop the Oscam at exactly 6AM everyday, and if you have already configured prior the checkoscam.sh script.. exactly running each minute.. at 6.01 AM oscam will restart auto...
i know its offtopic but.....
for Cardserverproxy its pretty much the same thing, if you have the checkscript.sh to check it , set up crontab every minute also..
then new crontab to stop csp at a specific time of the day for reboot..
Quote00 06 * * * /etc/local/csp/cardservproxy.sh stop
(this stops the CSP folders are just an example the CSP can be on any other place location folder so point the right path to the csp folder)
if you dont have any checkscript.sh at atll to check csp , u can use this crontab -e below to restart CSP at exactly 6.01 AM everyday.. (checkscript its good cause csp if running on 32bits systems can easily crash during other time of the day.. and the check script every minute checks it and reboots it 1min after)
Quote01 06 * * * /etc/local/csp/cardservproxy.sh start
(this starts the CSP folders are just an example the CSP can be on any other place location folder so point the right path to the csp folder)