On Thu, 22 May 2008 21:33:21 -0430 Jose Luis Rivas Contreras <[EMAIL PROTECTED]> wrote:
> This is my init file:
> 8<-------------
> case "$1" in
> start)
> echo -n "Starting $DESC: "
> start-stop-daemon --start --quiet
> --pidfile /var/run/gkrellmd.pid \ --exec $DAEMON -m -b -- $DAEMON_OPTS
^^^^^
I didn't see that -m -b. It must be new because I wouldn't have need
to make the fix I did if they were there before. Those are
--make-pidfile and --background which cause start-stop-daemon to do the
deamonization instead of the program itself (gkrellmd). I think it is
better to let the program daemonize itself (according to man
start-stop-daemon:
Typically used with programs that don't detach on their own.
This option will force start-stop-daemon to fork before
starting the process, and force it into the background.
WARNING: start-stop-daemon cannot check the exit status if the
process fails to execute for any reason. 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.
Don't mean to be a pain; I fixed it myself and then when the package
wanted to update I didn't see the -m -b. In any event I'm going to
leave my changes in place for now, and I recommend you switch to the
method I use because -m -b is meant as a last resort.
Up to you of course.
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
signature.asc
Description: PGP signature

