ddclient init.d script fails to stop ddclient, the init.d script has an "error", as it doesnt pass the pid file to start-stop-daemon, this it cannot stop it when issuing /etc/init.d/ddclient stop Reproducible: Always Steps to Reproduce: 1. configure the /etc/ddclient/ddclient.conf 2. /etc/init.d/ddclient start 3. /etc/init.d/ddclient start Actual Results: * Stopping DDClient ... [ !! ] Expected Results: * Stopping DDClient ... [ ok ] This has a easy fix: start() { checkconfig || return 1 ebegin "Starting DDClient" start-stop-daemon --start --quiet --exec /usr/sbin/ddclient \ -- -pid=/var/run/ddclient.pid eend $? }
(In reply to comment #0) Original /etc/init.d/ddclient: #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/files/ddclient.rc6,v 1.4 2004/07/14 23:21:59 agriffis Exp $ depend() { need net } checkconfig() { if [ ! -e /etc/ddclient/ddclient.conf ] ; then eerror "You need a /etc/ddclient/ddclient.conf file to run ddclient" eerror "There is a sample file in /etc/ddclient/" return 1 fi } start() { checkconfig || return 1 ebegin "Starting DDClient" start-stop-daemon --start --quiet --exec /usr/sbin/ddclient eend $? } stop() { ebegin "Stopping DDClient" start-stop-daemon --stop --quiet --pidfile /var/run/ddclient.pid eend $? } Fixed /etc/init.d/ddclient: #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-dns/ddclient/files/ddclient.rc6,v 1.4 200 4/07/14 23:21:59 agriffis Exp $ depend() { need net } checkconfig() { if [ ! -e /etc/ddclient/ddclient.conf ] ; then eerror "You need a /etc/ddclient/ddclient.conf file to run ddcli ent" eerror "There is a sample file in /etc/ddclient/" return 1 fi } start() { checkconfig || return 1 ebegin "Starting DDClient" start-stop-daemon --start --quiet --exec /usr/sbin/ddclient \ -- -pid=/var/run/ddclient.pid eend $? } stop() { ebegin "Stopping DDClient" start-stop-daemon --stop --quiet --pidfile /var/run/ddclient.pid eend $? }
Thanks; BTW, do you have any ideas about Bug 91500?
(In reply to comment #2) > Thanks; BTW, do you have any ideas about Bug 91500? I've posted what i think may have caused Bug 91500, i currently can do both start and stop, both give me [ ok ] I hope that's what's causing it =)
Seems fixing Bug #91500 fixes this one too...
I'll dupe this to 91500 *** This bug has been marked as a duplicate of 91500 ***