Bug 164531
Summary: | final shutdown for USB based UPS's fails | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alfred Ganz <alfred-ganz+bug> |
Component: | nut | Assignee: | Than Ngo <than> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brian Brock <bbrock> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | CC: | fabrice |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | FC5 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-04-24 16:54:07 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 164524 |
Description
Alfred Ganz
2005-07-28 15:30:34 UTC
. I agree with Alfred, that the /etc/init.d/halt script needs some love, when handling the /etc/killpower case : . A possible workaround for Alfred's last note, about the missing /proc/bus/usb usbfs, is to remount it just before issuing the ups shutdown command. In this case, a "-u root" option must be added to this command, because the usb device in the usbfs tree is no longer with the right 'nut' group, after remount. . Another problem with the current script, is that $DEVICE is supposed to contains a value, but this is not mandatory, if this information is in /etc/ups/ups.conf instead, and if the $MODEL command is launched with the "-a <myups>" option. I suggest to use the same invokation than in /etc/init.d/nut : /sbin/$MODEL -u root -k $OPTIONS $DEVICE, and to remove the test "-n $DEVICE" just above. (btw, what's the purpose of $OPTIONS_HALT here ?, this options is not documented in /etc/sysconfig/ups) . The problem is still in FC4, and rawhide. it's now fixed in FC5 release. Thanks for your report. |