6 # description: Bullet proof dynamic DNS update daemon.
7 # processname: bpdyndnsd
8 # pidfile: /var/run/bpdyndnsd.pid
10 # Source function library.
11 . /etc/rc.d/init.d/functions
13 # define the paths to the binaries:
14 path_prg=/usr/bin/bpdyndnsd
17 path_pidfile=/var/run/bpdyndnsd.pid
25 [ -f ${path_pidfile} ] || return 1
26 pid_from_file=`head -n1 ${path_pidfile}`
27 [ -L /proc/${pid_from_file}/exe ] || return 1
28 [ "`readlink /proc/${pid_from_file}/exe`" = "${path_prg}" ]
38 echo -n "Starting bpdyndnsd: "
40 initlog -c "${path_prg} --daemon_mode 1 --syslog 1" && success || failure
44 if [ $RETVAL -eq 0 ] ; then
45 touch /var/lock/subsys/bpdyndnsd
51 echo -n "Stopping bpdyndnsd: "
57 rm -f /var/lock/subsys/bpdyndnsd
62 echo -n "Reloading bpdyndnsd: "
64 killproc bpdyndnsd -HUP
72 ## determine what we should do:
92 if [ -f /var/lock/subsys/bpdyndnsd ]; then
98 echo "Usage: bpdyndnsd {start|stop|status|restart|reload|condrestart}"