On 2007-04-18T10:28:06, Dejan Muhamedagic <[EMAIL PROTECTED]> wrote:

> > >     declare -a procs
> 
> Does /bin/sh support arrays? I think that so far all resource
> agents were supported by the most common denominator which is
> Bourne shell.

It doesn't matter. eDirectory will only be available on systems which
also have bash installed.

> > >       if [ -z $(ps -p ${procs[0]} -o pid=) ] ; then
> > kill -0 on the pid is a lot simpler.
> Right. BTW, did you know that 'kill -0' returns success in case
> the process is a zombie? That's where 'kill' method differs from
> 'ps | grep'.

ps also picks up zombies, the pattern has to be more specific.

In this case, this would be desirable - ndsd must be gone, not a zombie
;-)


Sincerely,
    Lars

-- 
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to