Public bug reported:

Binary package hint: heartbeat

when invoked with
  /etc/init.d/heartbeat stop
execution returns to the calling shell very quickly, while resources
are being stopped in the background.

This is bad in case of a shutdown or reboot, as the rest of the
shutdown may be faster than stopping of resources. In our case,
the continued shutdown ruined the state of the DRBD device and
the slave was unable to take over.

This is caused by line 336 of /etc/init.d/heartbeat in function StopHA,
which is misunderstood by dash:
   $HA_BIN/heartbeat -k &> /dev/null

Remedy: replace with
   $HA_BIN/heartbeat -k >/dev/null 2>&1 

patch is attached

** Affects: heartbeat (Ubuntu)
     Importance: Undecided
         Status: New

-- 
bashism in /etc/init.d/heartbeat
https://bugs.launchpad.net/bugs/241017
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to