3 # ddclient This shell script takes care of starting and stopping
6 # chkconfig: 2345 65 35
7 # description: ddclient provides support for updating dynamic DNS services.
9 # Above is for RedHat and now the LSB part
12 # Required-Start: $syslog $remote_fs
13 # Should-Start: $time ypbind sendmail
14 # Required-Stop: $syslog $remote_fs
15 # Should-Stop: $time ypbind sendmail
17 # Default-Stop: 0 1 2 6
18 # Short-Description: ddclient provides support for updating dynamic DNS services
19 # Description: ddclient is a Perl client used to update dynamic DNS
20 # entries for accounts on many dynamic DNS services and
21 # can be used on many types of firewalls
26 [ -f /etc
/ddclient
/ddclient.conf
] ||
exit 0
28 DDCLIENT_BIN
=/usr
/sbin
/ddclient
31 # LSB Standard (SuSE,RedHat,...)
33 if [ -f /lib
/lsb
/init-functions
] ; then
34 .
/lib
/lsb
/init-functions
37 # See how we were called.
40 echo -n "Starting ddclient "
41 start_daemon
$DDCLIENT_BIN -daemon 300
45 echo -n "Shutting down ddclient "
46 killproc
-TERM `basename $DDCLIENT_BIN`
55 echo -n "Checking for service ddclient "
56 checkproc
`basename $DDCLIENT_BIN`w
60 echo "Usage: ddclient {start|stop|restart|status}"