Summary: | ddclient init.d script fails to stop ddclient | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Eduardo Romero <earomero> |
Component: | New packages | Assignee: | Seemant Kulleen (RETIRED) <seemant> |
Status: | RESOLVED DUPLICATE | ||
Severity: | minor | CC: | fox2mike |
Priority: | High | Keywords: | Inclusion |
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Eduardo Romero
2005-07-19 21:52:04 UTC
(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... |