Dies ist eine mobil optimierte Seite, die schnell lädt. Wenn Sie die Seite ohne Optimierung laden möchten, dann klicken Sie auf diesen Text.

wie installiert man oscam check script - auto restart oscam nach crash

sky pirate

Meister
Registriert
2. Dezember 2009
Beiträge
803
Reaktionspunkte
49
Punkte
28
Ort
andalucia
hallo zusammen

meine dream lauft als server mit oscam.
ab und zu crashed stoppt oscam und man muss rebooten.

es gibt ein script dass oscam oder auch andere cams auto restart und somit laufen die dinge sanft und dass wollen wir ja.

dass script kommt von nem engl. forum ist aber an mehr forums im net.



How to "Oscam check script"

As more and more peeps are required to take the plunge with oscam here is a simple script which will check to see if oscam is running. If oscam has stopped running it will restart it automatically.

#!/bin/sh

process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
if [ -z "$process" ]; then
echo "Couldn't find oscam running. Restarting server-binary" >> /var/log/oscam.check
nohup /usr/local/bin/oscam >> /var/log/oscam.log &
else
echo "oscam is still OK!" >> /var/log/oscam.check
fi

succesfully tested this under a linux environment and can confirm it works 100%.You must however ensure that your oscam binary is indeed located in /usr/local/bin. If it isnt amend the script accordingly. Just configure cron to run the script say every 5 minutes & voila

new2
(thanks to new2linux)



weiss jemand wie man das script installiert?

zuerst braucht man ein image dass cron (crontab) hat.
zb pli 3 (man muss schauen ob man cron oder crontab existiert.)

dann kann man ueber telnet auf die box und gibt ein

crontab -e

sollte telnet fenster soweit sein um den script einzugeben.
ok safe mit ZZ oder so

kann jemand weiterhelfen
danke
el pirate:emoticon-0103-cool:
 
AW: wie installiert man oscam check script - auto restart oscam nach crash

danke mann, aber das ist auch so ein halbfertiger thread der mit lauter offenen fragen noch im raum steht.
ich denke viele dreamer sollte das interressieren, wie dieses script richtig installiert wird.
kann dieser thread ein bisschen weitergehen bitte
kennt sich jemand aus mit crontab autostart installieren?
danke
el pirate
 
Für die Nutzung dieser Website sind Cookies erforderlich. Du musst diese akzeptieren, um die Website weiter nutzen zu können. Erfahre mehr…