On Mon, Sep 03, 2007 at 03:38:26PM +0200, Marc Haber wrote:
> I start an exim, verify that daemon and pid file exist, and then
> invoke start-stop-daemon (as lsb-base's killproc() does).
> 
> start-stop-ademon kills the process and then complains that the
> process does no longer exist.
> 
> This warning seems wrong and should not be given.

strace shows:
$ sudo strace -f -ekill /sbin/start-stop-daemon --stop --pidfile 
/var/run/exim4/exim.pid --retry 5 --quiet --oknodo
kill(11205, SIGTERM)                    = 0
kill(11205, SIG_0)                      = -1 ESRCH (No such process)
/sbin/start-stop-daemon: warning: failed to kill 11205: No such process
Process 11216 detached

An earlier strace showed the initial SIGTERM to get an ESRCH return
code. Weirdness.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to