What do you think about switching the to having gkrellmd to being the
creator of the pidfile and elimiting -m -b --pidfile from
start-stop-daemon.  gkrellmd has it's own --pidfile option, so if you
do the following:

from my working /etc/init.d/gkrellmd

  start)
        echo -n "Starting $DESC: "
        start-stop-daemon --start --quiet \
                --exec $DAEMON -- --pidfile /var/run/$NAME.pid
$DAEMON_OPTS echo "$NAME."
        ;;
  stop)
        echo -n "Stopping $DESC: "
        start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid 
        echo "$NAME."
        ;;

You will have a working initscript that eliminates -m -b, because of the
fact that -m -b is considered a last resort (e.g. only for programs
that don't daemonize on their own), as I pointed out in my last email
with the quote from the start-stop-daemon manpage.

Reproduced here in case you missed it:

 -b, --background
[snip]
    This is a last resort, and is only meant for programs that either make  
    no  sense forking  on their  own,  or where it's not feasible to
    add the code for them to do this themselves.


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