Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25830 - apcupsd bootscript dependencies messed up
Summary: apcupsd bootscript dependencies messed up
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-03 14:07 UTC by Charles Mauch
Modified: 2003-09-03 13:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Mauch 2003-08-03 14:07:02 UTC
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:
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-09-03 11:10:59 UTC
would it be better to use
beforce hotplug just in case ?
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-09-03 11:11:18 UTC
before even.
Comment 3 Charles Mauch 2003-09-03 12:35:18 UTC
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.
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-09-03 13:01:45 UTC
added to -r4
should only work if hotplug is in runlevel