On Thu, 10 May 2007, Otte, Joerg wrote: > Fixed. > > The problem is, heartbeat starts children via /bin/sh > which is BASH on Linux but BOURNE-Shell > on Solaris which seem to handle parent-child relations > different. > > So what I had to do was to change strings: > "/bin/sh" -> "/usr/bin/bash".
Excellent! Sounds like good detective work! Many thanks (from a fellow Solaris person). We're trying to keep heartbeat based on Bourne shell, rather than Bash, for just such portability reasons (GNU Coding Standards and all that). Several platforms don't have native bash. So if reasonably possible it would be preferable for the fix to be within Bourne. Could you describe the parent-child problems you found, and let's see if we can come up with a fix within Bourne-shell. I'm happy to discuss any findings and ideas you come up with. Keeping the discussion on "linux-ha-dev" is probably wise, as others may well have valuable input into the principles at work. (By coincidence, Dejan and I were fixing a totally unrelated Bash-ism earlier this morning.) > I also looked for similar problems and also changed > Strings: > "/sbin/reboot -nf" -> "/usr/sbin/reboot -f" > "/sbin/poweroff" -> "/usr/sbin/poweroff" > > FYI: Details are in attched patch file. > > I think it would be better to have autoconf handle > those hard coded strings. Certainly. I'll try to take a look in the next few days. Would you mind if I asked you to do run-time confirmations of possible solutions? (If you don't hear, and if nothing appears in the http://hg.linux-ha.org/dev/ repository, then bug me...) Many thanks again for this valuable work! -- : David Lee I.T. Service : : Senior Systems Programmer Computer Centre : : UNIX Team Leader Durham University : : South Road : : http://www.dur.ac.uk/t.d.lee/ 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/
