gollum1981 Geschrieben 12. August 2007 Melden Share Geschrieben 12. August 2007 Hallo Ich will einen automatischen ENX Reset in die Neutrino_start einbauen Wo muss ich diese Zele einbauen??? und darf ich datei überhaupt ändern oder gibt das probleme? while [ 1 ]; do sleep 300; /bin/enxreset; done & So sieht meine neutrino_start datei aus!! #!/bin/sh # $Id: start_neutrino -u -f,v 1.30 2006/07/23 12:21:37 barf Exp $ date -s 010101001970 sectionsd timerd /var/plugins/operations camdstart if [ -e /var/etc/.pmt_update ] ; then zapit -u else zapit fi; controld nhttpd until neutrino -f -u ; do echo "Neutrino exited with nonzero exit status, restarting..." pidof sectionsd >/dev/null || sectionsd pidof timerd >/dev/null || timerd pidof zapit >/dev/null || zapit pidof controld >/dev/null || controld pidof nhttpd >/dev/null || nhttpd done [ -e /tmp/tuxmaild.pid ] && kill $( cat /tmp/tuxmaild.pid ) [ -e /tmp/tuxcald.pid ] && kill $( cat /tmp/tuxcald.pid ) [ -e /var/run/automount.pid ] && kill -TERM $( cat /var/run/automount.pid ) pzapit -kill /var/plugins/operations camdstop & i=9 while expr $i != 0 > /dev/null do if pidof controld > /dev/null; then echo "Waiting for controld (max. $i seconds)" elif pidof timerd > /dev/null; then echo "Waiting for timerd (max. $i seconds)" elif pidof zapit > /dev/null; then echo "Waiting for zapit (max. $i seconds)" elif pidof tuxmaild > /dev/null; then echo "Waiting for tuxmaild (max. $i seconds)" elif pidof tuxcald > /dev/null; then echo "Waiting for tuxcald (max. $i seconds)" else break; fi i=`expr $i - 1` sleep 1 done if [ -e /tmp/.nohalt ] ; then killall -q sectionsd killall -q timerd killall -q zapit killall -q controld killall -q nhttpd saa --fbas switch -fnc 0 -fblk 0 echo "Neutrino and its daemons terminated (hopefully)" exit fi if [ -e /tmp/.reboot ] ; then reboot else halt fi gruß gollum Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
Don de Deckelwech Geschrieben 12. August 2007 Melden Share Geschrieben 12. August 2007 Hi, lies mal das: http://www.keywelt-board.com/index.php?sho...,start_neutrino Ciao, DdD. Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
Admin SnowHead Geschrieben 12. August 2007 Admin Melden Share Geschrieben 12. August 2007 Und was hat das nun wieder mit dem Debug-Modus zu tun? Ich schieb dann mal wieder. Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
gollum1981 Geschrieben 12. August 2007 Autor Melden Share Geschrieben 12. August 2007 Der code muß vor dem neutrino start eingefügt werden! soweit bin ich auch schon, aber wo genau??? bin doch ein anfänger Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
Don de Deckelwech Geschrieben 12. August 2007 Melden Share Geschrieben 12. August 2007 Hi, lol, das steht doch da in dem Thema, und zwar hier: http://www.keywelt-board.com/index.php?sho...ndpost&p=743923 Wichtig: Zum editieren einen Linux-kompatiblen Editor benutzen !!! Ciao, DdD. Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
gollum1981 Geschrieben 13. August 2007 Autor Melden Share Geschrieben 13. August 2007 Hallo ist es so korrekt? ich hoffe mal ja!?!??! #!/bin/sh # $Id: start_neutrino -u -f,v 1.30 2006/07/23 12:21:37 barf Exp $ while [ 1 ]; do sleep 300; /bin/enxreset; done & date -s 010101001970 sectionsd timerd /var/plugins/operations camdstart if [ -e /var/etc/.pmt_update ] ; then zapit -u else zapit fi; controld nhttpd until neutrino -f -u ; do echo "Neutrino exited with nonzero exit status, restarting..." pidof sectionsd >/dev/null || sectionsd pidof timerd >/dev/null || timerd pidof zapit >/dev/null || zapit pidof controld >/dev/null || controld pidof nhttpd >/dev/null || nhttpd done [ -e /tmp/tuxmaild.pid ] && kill $( cat /tmp/tuxmaild.pid ) [ -e /tmp/tuxcald.pid ] && kill $( cat /tmp/tuxcald.pid ) [ -e /var/run/automount.pid ] && kill -TERM $( cat /var/run/automount.pid ) pzapit -kill /var/plugins/operations camdstop & i=9 while expr $i != 0 > /dev/null do if pidof controld > /dev/null; then echo "Waiting for controld (max. $i seconds)" elif pidof timerd > /dev/null; then echo "Waiting for timerd (max. $i seconds)" elif pidof zapit > /dev/null; then echo "Waiting for zapit (max. $i seconds)" elif pidof tuxmaild > /dev/null; then echo "Waiting for tuxmaild (max. $i seconds)" elif pidof tuxcald > /dev/null; then echo "Waiting for tuxcald (max. $i seconds)" else break; fi i=`expr $i - 1` sleep 1 done if [ -e /tmp/.nohalt ] ; then killall -q sectionsd killall -q timerd killall -q zapit killall -q controld killall -q nhttpd saa --fbas switch -fnc 0 -fblk 0 echo "Neutrino and its daemons terminated (hopefully)" exit fi if [ -e /tmp/.reboot ] ; then reboot else halt fi gruß Gollum Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
gollum1981 Geschrieben 14. August 2007 Autor Melden Share Geschrieben 14. August 2007 ist die oben genannte datei denn richtig? bzw, ist die zeile (while [ 1 ]; do sleep 300; /bin/enxreset; done &), da wo ich sie eingefügt hab, richtig??? bitte um antwort!!! danke gruß gollum Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
gollum1981 Geschrieben 24. August 2007 Autor Melden Share Geschrieben 24. August 2007 Kann mir das hier keiner beantworten ob die Zeile richtig ist, oder wo muss ich mit der zeile hin??? bitte um antwort... Gruß Gollum1981 Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
Empfohlene Beiträge
Archiviert
Dieses Thema ist jetzt archiviert und für weitere Antworten gesperrt.