Package: dirmngr
Version: 1.0.1-3
Severity: normal
Tags: patch

I have a problem with the initscript of dirmngr:

isar:~# invoke-rc.d dirmngr stop
Stopping DirMngr: dirmngr/usr/sbin/invoke-rc.d: line 446: 11294 Terminated      
        "${INITDPREFIX}${INITSCRIPTID}" "${saction}" "$@"
invoke-rc.d: initscript dirmngr, action "stop" failed.
isar:~# /etc/init.d/dirmngr status
DirMngr is not running. failed!

The initscript does stop the daemon, but it also kills itself:

isar:~# /etc/init.d/dirmngr start
Starting DirMngr: dirmngr.
isar:~# /etc/init.d/dirmngr status
DirMngr is running..
isar:~# /etc/init.d/dirmngr stop
Stopping DirMngr: dirmngrTerminated
isar:~# echo $?
143

This seems to be an issue with the "killproc" function, similar to bug
#494268 of the "at" package. It can be avoided by specifying the pidfile
when killproc is called; see the attached patch. (I simply copied how
the initscript of exim4 invokes killproc.)

Thank you for your time.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-flo (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dirmngr depends on:
ii  adduser                       3.110      add and remove users and groups
ii  libc6                         2.7-13     GNU C Library: Shared libraries
ii  libgcrypt11                   1.4.1-1    LGPL Crypto library - runtime libr
ii  libgpg-error0                 1.4-2      library for common error values an
ii  libksba8                      1.0.3-1    X.509 and CMS support library
ii  libldap-2.4-2                 2.4.10-3   OpenLDAP libraries
ii  libpth20                      2.0.7-10   The GNU Portable Threads
ii  lsb-base                      3.2-19     Linux Standard Base 3.2 init scrip

dirmngr recommends no packages.

dirmngr suggests no packages.

-- no debconf information
--- a/etc/init.d/dirmngr	2008-02-18 10:47:52.000000000 +0100
+++ b/etc/init.d/dirmngr	2008-08-17 12:25:24.000000000 +0200
@@ -56,7 +56,7 @@
 	;;
     stop)
 	log_daemon_msg "Stopping DirMngr" $NAME
-	killproc $DAEMON
+	killproc -p "$PIDFILE" "$DAEMON"
 	log_end_msg $?
 	;;
     status)
@@ -81,7 +81,7 @@
 	;;
     reload|force-reload)
 	log_daemon_msg "Reloading DirMngr configuration" $NAME
-	killproc $DAEMON HUP
+	killproc -p "$PIDFILE" "$DAEMON" -HUP
 	log_end_msg $?
 	;;
     *)

Reply via email to