Jump to content

ENX Reset


gollum1981

Empfohlene Beiträge

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

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

  • 2 weeks later...

Archiviert

Dieses Thema ist jetzt archiviert und für weitere Antworten gesperrt.

  • Wer ist Online   0 Benutzer

    • Keine registrierten Benutzer online.
×
×
  • Neu erstellen...