commit 96eecfa6cdff551c2c5b8cf08537e670c82afd39 Author: kueller Date: Mon Jan 3 10:48:06 2011 +0000 Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_ez-ipupdate@5933 504e572c-2e33-0410-9681-be2bf7408885 diff --git a/etc/init.d/ez-ipupdate b/etc/init.d/ez-ipupdate new file mode 100644 index 0000000..93b60c8 --- /dev/null +++ b/etc/init.d/ez-ipupdate @@ -0,0 +1,60 @@ +#!/bin/sh +#ez-ipupdate des systemvinit prozesses +#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution +#(c) Rainmaker MultiMedia OHG +# +#$Author$ +#$Date$ +#$Revision$ +# +#$Log$ +#Revision 1.3 2002/11/04 22:41:46 kueller +#Fehlende ez-ipupdate daemon configuration wird nun abgefangen, und +#erzeugt keine fehlermeldung mehr. +# +#Revision 1.2 2002/05/16 08:54:52 hkueller +#ez-ipupdate wird nun durch die Dateien /etc/sysconfig/ez-ipupdate/* gesteuert. +#Die Datei muß wie die dynamic DNS Domain und Hostname heissen +# +#Revision 1.1.1.1 2002/02/13 16:09:42 hkueller +#New Packet ez-ipupdate +# +# +# + +source /etc/init.d/functions + +case "$1" in + start) + if ls /etc/sysconfig/ez-ipupdate/* >/dev/null 2>&1; then + for i in /etc/sysconfig/ez-ipupdate/*; do + echo -n "Starting ez-ipupdate for `basename $i`" + /usr/bin/ez-ipupdate -h `basename $i` \ + -c $i + evaluate_retval + echo -n "Starting ez-ipupdate daemon for `basename $i`" + /usr/bin/ez-ipupdate -d -h `basename $i` \ + -c $i + evaluate_retval + done + fi + ;; + + stop) + echo -n "Stopping ez-ipupdate daemon" + pkill -9 -f /usr/bin/ez-ipupdate + evaluate_retval + ;; + + restart) + $0 stop + /usr/bin/sleep 1 + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; + +esac diff --git a/etc/init/ez-ipupdate-cfg.conf b/etc/init/ez-ipupdate-cfg.conf new file mode 100644 index 0000000..194779b --- /dev/null +++ b/etc/init/ez-ipupdate-cfg.conf @@ -0,0 +1,18 @@ +description "Startup Helper for ez-ipupdate daemon" +author "Harald Kueller " +version 1.0 +emits none special + +start on (runlevel [345] and (started adsl)) +stop on runlevel [0126] + +console none + +script + if ls /etc/sysconfig/ez-ipupdate/* >/dev/null 2>&; then + for i in /etc/sysconfig/ez-ipupdate/*; do + /usr/bin/ez-ipupdate -h `basename $i` \ -c $i + initctl ipupdate UPDATEHOST=`basename $i` + done + fi +end script diff --git a/etc/init/ez-ipupdate-daemon.conf b/etc/init/ez-ipupdate-daemon.conf new file mode 100644 index 0000000..fdc76a7 --- /dev/null +++ b/etc/init/ez-ipupdate-daemon.conf @@ -0,0 +1,11 @@ +description "Startup ez-ipupdate daemon" +author "Harald Kueller " +version 1.0 +emits none special + +start on ipupdate +stop on runlevel [0126] + +console none + +exec /usr/bin/ez-ipupdate -f -h $UPDATEHOST -c /etc/sysconfig/ez-ipupdate/$UPDATEHOST diff --git a/init/genpkg b/init/genpkg new file mode 100644 index 0000000..ce2a3fa --- /dev/null +++ b/init/genpkg @@ -0,0 +1,37 @@ +#!/bin/bash +#Packet initialisierung für ez-ipupdate +#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution +#(c) Rainmaker MultiMedia OHG +# +#$Author$ +#$Date$ +#$Revision$ +# +#$Log$ +#Revision 1.2 2002/02/13 16:11:01 hkueller +#rc?.d Verzeichnisse werden nun vor benutzung angelegt +# +#Revision 1.1.1.1 2002/02/13 16:09:42 hkueller +#New Packet ez-ipupdate +# +# + +if [ -d /var/install/sysvinit* ]; then + WDIR=`pwd` + cd etc/init.d + for i in 2 3 4 5; do + mkdir rc$i.d + cd rc$i.d + ln -s ../ez-ipupdate S13ez-ipupdate + cd .. + done + for i in 0 1 6; do + mkdir rc$i.d + cd rc$i.d + ln -s ../ez-ipupdate K75ez-ipupdate + cd .. + done + cd .. + cd $WDIR +fi +mkdir -p sysconfig/ez-ipupdate