Jump to content

deamon autostart


skorpion-23

Empfohlene Beiträge

Hallo

Wie kann ich Embedded Uptime Project so einrichten das meine Dbox2 automatisch den befehl [ -e /var/bin/stbup ] && /var/bin/stbup -C /var/etc/stbup.conf & startet? Wo genau muß ich es in der Start-Neutrino eintragen, ist es egal wo?

#!/bin/sh

# $Id: start_neutrino,v 1.4 2005/11/06 18:25:08 Worschter Exp $

 

date -s 010101001970

if [ -e /var/etc/.rdate ]; then

rdate time.fu-berlin.de

fi

 

sectionsd

timerd

 

/var/plugins/operations logcs_init

 

[ -e /var/etc/.tuxcald ] && tuxcald &

 

[ -e /var/etc/.key_auto_up ] && key_autoupd &

/var/plugins/operations camd_init &

 

if [ -e /var/etc/.pmt_update ] ; then

zapit -u

else

zapit

fi;

 

controld

nhttpd

 

#/var/plugins/operations sect_renice &

/var/plugins/operations epg_reinit &

 

if [ -e /var/plugins/woltimer/.wol_auto ] ; then

touch /var/plugins/woltimer/.wol

sleep 40 && /var/plugins/woltimer/woltimerd &

fi;

 

 

 

KEEP_ALIVE=1

while expr $KEEP_ALIVE != 0 > /dev/null

do

neutrino -u -f

KEEP_ALIVE=$?

done

 

pzapit -kill

 

[ ! -e /tmp/.config_stop ] && /var/plugins/operations camd_exit &

 

if pidof logcsd > /dev/null; then

killall logcsd

fi;

 

[ -e /tmp/tuxmaild.pid ] && kill -term $( cat /tmp/tuxmaild.pid )

 

i=50

while expr $i != 0 > /dev/null

do

if [ ! -e /tmp/.config_stop ] && 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)"

else break;

fi

i=`expr $i - 1`

sleep 1

done

 

if [ -e /tmp/.config_stop ]; then

if pidof zapit > /dev/null; then

killall -9 zapit

fi

i=1

while expr $i != 2 > /dev/null

do

msgbox title="Configs einspielen" msg="Bitte jetzt Config-Dateien einspielen" select="moment,reboot" timeout=999 size=32

i=$?

killall -9 msgbox

done

/var/plugins/operations ex_kill

reboot

exit 0

fi

 

if [ -e /tmp/.reboot ] ; then

reboot

else

halt

fi

Link zu diesem Kommentar
Auf anderen Seiten teilen

Archiviert

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

  • Wer ist Online   0 Benutzer

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