In order for apcupsd to connect to a USB UPC device *on boot*, the following needs to be added to the apcupsd initscript. depend() { need hotplug } Otherwise the service fails when it can't connect to the UPS via USB. Without this fix, the only way to bring up apcupsd is by waiting until hotplug has loaded, then manually starting it at a shell prompt - which doesn't do anyone any good in the event of a power failure that results in a computer shutdown. Reproducible: Always Steps to Reproduce:
would it be better to use beforce hotplug just in case ?
before even.
Perhaps an alternative to modifying the script would be insert a notice at the end of the build process telling the user that if they use USB they'll need to tweak the boot script slightly. I'm sure there are plenty of servers out there with serial UPS connections who have zero need for hotplug support.
added to -r4 should only work if hotplug is in runlevel