Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_ez-ipupdate@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
96eecfa6cd
60
etc/init.d/ez-ipupdate
Normal file
60
etc/init.d/ez-ipupdate
Normal file
|
@ -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
|
18
etc/init/ez-ipupdate-cfg.conf
Normal file
18
etc/init/ez-ipupdate-cfg.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
description "Startup Helper for ez-ipupdate daemon"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
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
|
11
etc/init/ez-ipupdate-daemon.conf
Normal file
11
etc/init/ez-ipupdate-daemon.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
description "Startup ez-ipupdate daemon"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
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
|
37
init/genpkg
Normal file
37
init/genpkg
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user