Bug 496861
Summary: | [RFE] call halt.local from /etc/init.d/halt with parameters | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Marc Grimme <grimme> | |
Component: | initscripts | Assignee: | Bill Nottingham <notting> | |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | rawhide | CC: | hlawatschek, kvolny, lnykryn, notting, rvokal | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 554392 (view as bug list) | Environment: | ||
Last Closed: | 2012-06-05 15:16:11 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: | 516998, 554392 | |||
Attachments: |
Description
Marc Grimme
2009-04-21 13:49:57 UTC
Created attachment 340527 [details]
This patch changes /etc/init.d/halt so that it calls halt.local with some parameters defined in /etc/init.d/halt
Well, the idea is that halt.local isn't necessarily doing all those things itself, so it shouldn't need that much information; it should not need to care about kexec, or what messages to echo, etc. But some of it could be useful. I agreed. I just added all parameters to halt.local that are defined in halt. But I agree "$message" and "$HALTARGS" are enough. We don't have /etc/init.d/halt anymore, so closing. Created attachment 601731 [details]
Changes /etc/init.d/halt to call halt.local with variables used in halt as parameters.
halt.local is called with $message, $command, $HALTARGS and $kexec_command parameters in this patch.
First three parameters have always some value, but $kexec_command is set only if $command is "reboot".
I also moved definition of $HALTARGS above the halt.local call, because otherwise it would be always unset.
|