Package: pgpool
Severity: important
Tags: patch
The init.d script invokes killproc with $NAME as the parameter that
gets handed to start-stop-daemon's --exec flag (which is looked for in
/proc/pid/exe in order to identify the process to stop).
Unfortunately, the contents of /proc/pid/exe correspond to the full
path of the binary, so pgpool never matches, and the process isn't
found. Changing the script to use $DAEMON instead of $NAME makes it
work again, and seems to remove the impetus for the following line (it
certainly works without it on my system, though I acknowledge that
there may be other issues I'm unaware of).
Anyway, a quick patch gets this working again.
--- pgpool.~1~ 2005-09-05 04:31:14.000000000 -0500
+++ pgpool 2005-10-05 13:35:05.000000000 -0500
@@ -35,8 +35,8 @@
d_stop() {
- killproc -p $PIDFILE $NAME -INT
- rm -f $PIDFILE # see bug #321271
+ killproc -p $PIDFILE $DAEMON -INT
+# rm -f $PIDFILE # see bug #321271
}
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.13-t43p
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]