I discovered that I was misleading in my bug title and description.  I
had forgotten _why_ I switched the pidfile parameter.

Try doing /etc/init.d/gkrellmd stop and you will notice that
start-stop-daemon fails with the message that the pid does not exist
(not the file the actual process).

If you ps aux|grep gkrellmd, gkrellmd is still alive, not terminated.

This is because --pidfile to start-stop-daemon gets the process of the
pre-daemon process, which terminates after the exec.  The daemon has a
different pid than the startup process and that is why you need to let
the daemon create the pidfile not start-stop-daemon.

As I said, my init script is right, yours doesn't work.  It creates the
pidfile, you're right about that, but it's the wrong pid.

Regards,

Daniel

-- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C      http://gnupg.org
No more sea shells:  Daniel's Weblog    http://cshore.wordpress.com

Attachment: signature.asc
Description: PGP signature

Reply via email to