#!/bin/sh
#
# init.d/ddclient
#
### BEGIN INIT INFO
# Provides: ddclient
# Required-Start: $named $network
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description: ddclient provides support for updating dynamic DNS services.
### END INIT INFO
. /etc/rc.status
rc_reset
[ -f /etc/ddclient.conf ] || exit 0
PATH=/usr/sbin:${PATH}
COLUMNS=9999
export PATH COLUMNS
program=ddclient
case "$1" in
start)
echo -n "Starting ddclient: "
# ddclient -daemon 300
ddclient -v
rc_status -v
;;
stop)
echo -n "Shutting down ddclient: "
kill `ps -aef | awk '/[ \/]perl.*ddclient/ { print $2}'`
rc_status -v
;;
restart)
$0 stop
$0 start
rc_status
;;
status)
pids=`ps -aef | awk '/[ \/]perl.*ddclient/ { print $2}'`
if test "$pids"
then
for p in $pids
do
echo "$program (pid $p) is running"
done
else
echo "$program is stopped"
fi
rc_status -v1
;;
*)
echo "Usage: ddclient {start|stop|restart|status}"
exit 1
esac
exit 0
Welche Fehlermeldung? Bei mir tut's bestens. Soweit ich mich erinnere ist ddclient tolerant, d.h. solange keine NW Verbindung existiert wird weiter gepollt bis dann nach bestehender Verbindung die Registrierung vorgenommen wird.bernd schrieb:So gehts leider nicht da das Programm schon VOR der Netzwerkinitialisierung
gestartet wird und es somit zu einer Fehlermeldung kommt.
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
...
use=if, if=ppp0 # für DSL