Dear maintainer,

I agree with Maurizio and Laurent.

I tested using start-stop-daemon as in the following patch and hibernation
in KDE works nicely with it.

I used the patch of Maurizio, but splitted the call to start-stop-daemon into
mutiple lines and KMail should post this without wordwrap issues.

With this patch and systemd enabled, which just runs this init script as
there is no service file yet in dirmngr package, I get dirmngr running as

merkaba:~> ps aux | grep dirmngr | grep -v grep
dirmngr   1092  0.0  0.0  17412  1700 ?        Ss   20:06   0:00 
/usr/bin/dirmngr --daemon --sh

which seems to be correct to me.

Please apply either Maurizio´s or my variant of the patch. All credits go to
Maurizio of course.


merkaba:/etc/init.d> bzr diff .
=== modified file 'init.d/dirmngr'
--- init.d/dirmngr      2014-05-10 17:58:13 +0000
+++ init.d/dirmngr      2014-05-10 17:55:55 +0000
@@ -32,7 +32,9 @@
                mkdir -p /var/run/dirmngr || return 1
                chown dirmngr:dirmngr /var/run/dirmngr || return 1
 
-               output=$(su -c ". /lib/lsb/init-functions && umask 027 && 
start_daemon -p $PIDFILE $DAEMON --daemon --sh" dirmngr) || return 1
+               output=$(start-stop-daemon --start --quiet --exec $DAEMON \
+                       --oknodo --pidfile $PIDFILE --umask 027 --chuid dirmngr 
\
+                       -- --daemon --sh) || return 1
                eval "$output" || return 1
                pid=$(echo "$DIRMNGR_INFO" | cut -d : -f 2) || return 1
                echo "$pid" >$PIDFILE || return 1

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to