dependency (S-nail) improperly configured
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apcupsd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 20.04:
If there is no mail/mailx command, then installing apcupsd will require to install s-nail, probably as a replacement of the former 'heirloom-mailx'. S-nail is a replacement for mail/mailx, with the same syntax. Installing s-nail only provides s-nail command though, and not the mail/mailx commands (as heirloom-mailx used to make) expected by apcupsd.
Steps:
1. Bug/proof: install apcupsd, unplug and replug APC. It does not send any email to root from root.
2. Fix: Of course you can always hack the and add some email commands in /etc/apcupsd/
* sudo ln -s /usr/bin/s-nail /etc/alternativ
* sudo ln -s /etc/alternativ
* sudo ln -s /usr/bin/s-nail /etc/alternativ
* sudo ln -s /etc/alternativ
try again to unplug and plug back UPS. You now get email messages for each events as it should w//o changing apccontrol file.
In clear, s-nail dependency is useless, unless we add the 2 simlinks. Only mail, not mailx is really needed (i guess this is because of the mail command in /etc/default/
Regards -- mk