Mailinglist Archive: opensuse-bugs (4067 mails)

< Previous Next >
[Bug 267306] /etc/init.d/ddclient can't see ddclient running

https://bugzilla.novell.com/show_bug.cgi?id=267306

https://bugzilla.novell.com/show_bug.cgi?id=267306#c3


Ruediger Oertel <ro@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED

--- Comment #3 from Ruediger Oertel <ro@xxxxxxxx> 2011-08-29 13:24:13 UTC ---
wow, I guess this has been broken for quite a while.
problem is that this is
a) a script, so proc/$pid/exe does point to the interpreter, not to the script
b) a tool changing $0, so you can not even check /proc/$pid/cmdline to match

hacked the init-script so that it works at least (and changed a different typo
while I was at it):

--- rc.ddclient 2011-08-29 14:42:15.516671000 +0200
+++ /etc/init.d/ddclient 2011-08-29 15:17:14.392689538 +0200
@@ -40,7 +40,7 @@
if [ `/bin/cat $DDCLIENT_CONFIG | grep -e "^use=" >/dev/null; echo $?` -eq 0
]; then
dd_use=
else
- dd_use="-use if -if ppp0"
+ dd_use="-use=if -if ppp0"
fi

# Shell functions sourced from /etc/rc.status:
@@ -75,14 +75,15 @@
case "$1" in
start)
echo -n "Starting ddclient daemon :"
- /sbin/startproc "$DDCLIENT_BIN" -daemon $dd_intervall "$dd_use"
$DDCLIENT_OPTIONS
+ echo /sbin/startproc "$DDCLIENT_BIN" -daemon $dd_intervall "$dd_use"
$DDCLIENT_OPTIONS
+ /sbin/startproc "$DDCLIENT_BIN" -daemon $dd_intervall "$dd_use"
$DDCLIENT_OPTIONS -pid /var/run/ddclient.pid

# remember status and be verbose
rc_status -v
;;
stop)
echo -n "Shutting down ddclient daemon :"
- /sbin/killproc -TERM `basename "$DDCLIENT_BIN"`
+ /sbin/killproc -p /var/run/ddclient.pid -TERM /usr/bin/perl

# remember status and be verbose
rc_status -v
@@ -115,7 +116,7 @@
;;
status)
echo -n "Checking for service ddclient :"
- /sbin/checkproc `basename "$DDCLIENT_BIN"`
+ /sbin/checkproc -p /var/run/ddclient.pid /usr/bin/perl

# remember status and be verbose
rc_status -v


fix submitted for openSUSE:Factory.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >