Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116349 - apcupsd can't kill power when /usr dismounted
Summary: apcupsd can't kill power when /usr dismounted
Status: RESOLVED DUPLICATE of bug 65211
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: 2005-12-21 21:07 UTC by Steve Kutnar
Modified: 2005-12-22 00:02 UTC (History)
0 users

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 Steve Kutnar 2005-12-21 21:07:02 UTC
On Gentoo, apcupsd gets installed into /usr/sbin.  If /usr is dismounted during shutdown, the killpower command cannot work.

When installing apcupsd for Red Hat, for instance, the executables are installed into /sbin, which is probably still mounted when killpower is called.
Comment 1 Steve Kutnar 2005-12-21 21:44:36 UTC
A snippet from http://www.apcupsd.com/3.10.x-manual/Building_Installing_apcupsd.html

--sbindir=<path>
    This defines the directory for the executable files such as apcupsd. The default is /sbin. You may be tempted to place the executable files in /usr/sbin or /usr/local/sbin. Please use caution here as these directories may be unmounted during a shutdown and thus may prevent the halt script from calling apcupsd to turn off the UPS power. Though your data will be protected, in this case, your system will probably not be automatically rebooted when the power returns.
Comment 2 Steve Kutnar 2005-12-21 21:49:34 UTC
It appears that bug 65211 was inappropriately set to fixed.  It brought up this issue, plus one I didn't think about with regards to /var/log.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-12-22 00:02:39 UTC

*** This bug has been marked as a duplicate of 65211 ***