I've been away from heartbeat development for a few weeks. A gremlin or
two seem to have crept in...
(I've just applied a patch to make an "if ..." statement comply with
Bourne (as distinct from bash/ksh) syntax.)
The "bootstrap" script now seems to rely heavily on "which". But the
"which" command is highly OS-variant:
1. FreeBSD supports a "-s" (silent). Other OSes (Linux, Solaris, don't).
Clauses such as:
if [ "$arch" = "Darwin" ]; then
are horribly non-portable. We need a better solution. I suggest
simply dropping any attempt to diddle with a "-s" and instead just rely
on the /dev/null redirection of stdout/stderr. Objections?
2. Its exit code cannot be relied upon. At least one OS always returns
0, relying on the textual output to indicate success/failure. So we
cannot rely on exit code "0" as a signal to proceed. I don't know
what we do about this. (Thoughts?)
--
: David Lee I.T. Service :
: Senior Systems Programmer Computer Centre :
: Durham University :
: http://www.dur.ac.uk/t.d.lee/ South Road :
: Durham DH1 3LE :
: Phone: +44 191 334 2752 U.K. :
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/