--- ddclient.init.bak 2006-02-03 00:18:39.000000000 -0500 +++ ddclient.init 2006-02-03 00:18:19.000000000 -0500 @@ -3,6 +3,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/files/ddclient.init,v 1.1 2005/04/01 22:20:38 seemant Exp $ +# This must match the pidfile specified in /etc/ddclient/ddclient.conf +PIDFILE=/var/run/ddclient/ddclient.pid + depend() { need net } @@ -19,12 +22,17 @@ start() { checkconfig || return 1 ebegin "Starting DDClient" - start-stop-daemon --start --chuid ddclient --quiet --exec /usr/sbin/ddclient 2&>/dev/null + start-stop-daemon --start \ + --chuid ddclient \ + --exec /usr/sbin/ddclient \ + --pidfile $PIDFILE eend $? } stop() { ebegin "Stopping DDClient" - start-stop-daemon --stop --quiet --name ddclient + start-stop-daemon --stop \ + --signal USR1 \ + --pidfile $PIDFILE eend $? }