6 # description: Bullet proof dynamic DNS update daemon.
7 # processname: bpdyndnsd
9 # Source function library.
10 . /etc/rc.d/init.d/functions
12 # define the paths to the binaries:
13 path_prg=/usr/intranator/bin/bpdyndnsd
16 path_pidfile=/var/run/bpdyndnsd.pid
24 [ -f ${path_pidfile} ] || return 1
25 pid_from_file=`head -n1 ${path_pidfile}`
26 [ -L /proc/${pid_from_file}/exe ] || return 1
27 [ "`readlink /proc/${pid_from_file}/exe`" = "${path_prg}" ]
37 echo -n "Starting bpdyndnsd: "
39 initlog -c "${path_prg} --daemon_mode 1 --syslog 1" && success || failure
43 if [ $RETVAL -eq 0 ] ; then
44 touch /var/lock/subsys/bpdyndnsd
50 echo -n "Stopping bpdyndnsd: "
56 rm -f /var/lock/subsys/bpdyndnsd
61 echo -n "Reloading bpdyndnsd: "
63 killproc bpdyndnsd -HUP
71 ## determine what we should do:
91 if [ -f /var/lock/subsys/bpdyndnsd ]; then
97 echo "Usage: bpdyndnsd {start|stop|status|restart|reload|condrestart}"