On Wed, 26 Nov 2008 11:43:23 +0100
"Sandro Tosi" <[EMAIL PROTECTED]> wrote:

> 
> I may be still sleeping, but
> 
>        -o, --oknodo
>               Return exit status 0 instead of 1 if no actions are
> (would be) taken.
> 
> still doesn't clarify how it helps :)

Perhaps because if nothing is to be done (i.e. no startup because it's
already running) --oknodo returns ok (0) instead of error (1)?

That fixed subsequent starts because I was running start with it
already started.

I'm not sure what the deal is with the initial run failing though (that
is nothing with ps aux).  I'll have to try that when I upgrade to a new
machine in the next week or two, to see if I can reproduce it and figure
out what the problem is.

Just to clarify I think there are two separate problems

1) Initial run failing to start for some reason (I have to reinstall to
see it again I think)
2) /etc/init.d/gkrellmd start failing as a result of gkrellmd already
being started.  This one is fixed by --oknodo
 
> > and remember that
> > gkrellm is the one that should be creating the pidfile through the
> > equivalent of gkrellm --pidfile (IIRC you need --pidfile twice in
> > the start script, once for start-stop-daemon and once after the --
> > for gkrellm, but I could be misremembering that;
> 
> double --pidfile option is only used in restart switch (that's weird
> by itself) but not in start/stop switches. So, does calling init
> script with "restart" works while with "start" not?

Yes.  I'm attaching the result of set -x at top of script and 
running script gkrellm-script and /etc/init.d/gkrellmd start (and
restart)

Just do 
script gkrellmd-script
assuming you save the file as gkrellmd-script

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
The C Shore: http://www.wightman.ca/~cshore

Attachment: gkrellm-script
Description: Binary data

Attachment: signature.asc
Description: PGP signature

Reply via email to