[Debian-ha-maintainers] Bug#691225: drbd scripts use mail(1) but don't tell that to anyone before it's too late

Josip Rodin joy at debbugs.entuzijast.net
Tue Oct 23 06:48:41 UTC 2012


Package: drbd8-utils

Hi,

After some unexpected event, DRBD forcefully rebooted the machine without
telling me anything. That was most confusing.

Only later was I able to pinpoint the specific problem with notifications:

Oct 23 08:39:38 hostname notify-pri-on-incon-degr.sh[20116]: /usr/lib/drbd/notify-pri-on-incon-degr.sh: line 103: mail: command not found

You have to declare at least a Recommends: relationship on the virtual package
mailx so that the admin can know they need mail(1).

Also, you might want to fix those default handler settings so that they
don't just run the notification and reboot commands in sequence regardless
of error level - replace the semicolons (;) with two ampersands (&&)
so that the reboot doesn't go through if the notification scripts failed
horribly.


TIA.

-- 
     2. That which causes joy or happiness.



More information about the Debian-ha-maintainers mailing list