Bug 45966
Summary: | halt/reboot scripts with word action or daemon commit suicide too soon | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | j. alan eldridge <alane> |
Component: | initscripts | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | rvokal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-06-26 14:51:20 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: |
Description
j. alan eldridge
2001-06-26 04:35:44 UTC
It's orthangonal to this problem, but why isn't the nut initscript suitable for your needs? If, even with that, code needs added to the halt script, something is wrong with the nut package. No, there's nothing wrong with the nut package. The code (that runs only when the UPS is on low battery, and we're going down for that reason) needs to be added at the end of "halt" because IT SHUTS THE POWER OFF! Do you think that "service nut stop" should kill the power? I hope not ... Here are the choices: 1. Run it in /etc/rc.d/init.d/nut. So we'll just kill the power with all the filesystems mounted. 2. Add it to the end of halt. We'll kill the UPS power rather than the "normal" way of shutting the power off. 3. Do it after halt completes ... umm, wait, we're halted... Fixed in CVS, will be in 6.00-1 or so. (I added the special case check for halt/reboot/etc in the 'action|daemon' case.) The grep is an ugly hack, but the only other way is a magic comment, which is equally as ugly. (And since the grep has been in the release since 6.0 (or 6.1, I forget), people may be *expecting* this behavior. |