Ciao...
qualcuno mi aiuta a creare uno script che riavvia oscam ogni xx minuti?
Grazie.
qualcuno mi aiuta a creare uno script che riavvia oscam ogni xx minuti?
Grazie.
#!/bin/sh if ps x |grep -v grep |grep -c oscam1 >/dev/null then echo "oscam1... ok" else echo "oscam... restarting" /usr/local/bin/oscam1 -p512 -bc /usr/local/etc/oscam1 fi
#!/bin/bash ## killall -9 oscam1 >/dev/null 2>&1 & sleep 3 killall -9 oscam2 >/dev/null 2>&1 & sleep 3 killall -9 oscam3 >/dev/null 2>&1 & sleep 3 killall -9 oscam4 >/dev/null 2>&1 & sleep 3 ## Restart oscam1 cd /usr/local/bin ./oscam1 >/dev/null 2>&1 & sleep 4 ## Restart oscam2 cd /usr/local/bin ./oscam2>/dev/null 2>&1 & sleep 5 ## Restart oscam3 cd /usr/local/bin ./oscam3 >/dev/null 2>&1 & sleep 5 ## Restart oscam4 cd /usr/local/bin ./oscam4 >/dev/null 2>&1 & sleep 5
1 0,6,12,18 * * * root /var/script/Restart_Oscam_OK.sh >/dev/null #Restart_Oscam_OK
http://www.bliner-key.com/update/
http://www.bliner-key.com/update/
#!/bin/bash founds=`tail -10 /var/log/oscam1.log | grep "not found" | wc -l` founds2=`tail -10 /var/log/oscam1.log | grep "exit with signal" | wc -l` founds3=`tail -20 /var/log/oscam1.log | grep "timeout" | wc -l` if [ $founds -gt 3 ] || [ $founds2 -ge 1 ] || [ $founds3 -ge 1 ] then echo "Error found, restart..."; /usr/local/bin/killall -9 oscam1 /usr/local/bin/oscam1 -p512 -bc /usr/local/etc/oscam1 fi exit
http://www.bliner-key.com/update/
# BEGIN: watchdog
*/5 * * * * /etc/init.d/rc.watchdog c_ie
*/5 * * * * /etc/init.d/rc.watchdog c_cr
*/5 * * * * /etc/init.d/rc.watchdog c_bw
# END: watchdog
#!/bin/bash
founds=`tail -10 /var/log/oscam1.log | grep "not found" | wc -l`
founds2=`tail -10 /var/log/oscam1.log | grep "exit with signal" | wc -l`
founds3=`tail -20 /var/log/oscam1.log | grep "timeout" | wc -l`
if [ $founds -gt 3 ] || [ $founds2 -ge 1 ] || [ $founds3 -ge 1 ]
then
echo "Error found, restart...";
/data/addon/oscam -9 oscam1
/data/addon/oscam1 -p512 -bc /data/addon/oscam1
fi
exit
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment