Bug 228393
Summary: | Shutdown halt hangs after system halted | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Chad <masterclc> |
Component: | sysvinit | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED WORKSFORME | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6 | 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: | 2007-04-24 20:31:45 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
Chad
2007-02-12 20:41:16 UTC
What happens if you pass '-p' to halt? It works! Which means I must have been mistaken when I said I tried poweroff... So, any hints on how I apply this so it works when halt and shutdown -h now are called? Thank you! -Chad Something that works: Editing /etc/rc.d/init.d/halt where near the end: ---------- # First, try kexec. If that fails, fall back to rebooting the old way. [ -n "$kexec_command" ] && $kexec_command -e >& /dev/null HALTARGS="-d" [ -f /poweroff -o ! -f /halt ] && HALTARGS="$HALTARGS -p" exec $command $HALTARGS -------------- Moving the -p up into the first HALTARGS argument so it looks like this instead: ----------------- HALTARGS="-p -d" [ -f /poweroff -o ! -f /halt ] && HALTARGS="$HALTARGS" ----------------- Allows it to work correctly. Thank you again. If there is a better 'fix' please let me know. -Chad shutdown -h should poweroff - are you getting any SELinux errors? Are you calling it as a user or as root? Going back... this *appears* to be working as expected. halt == halt, no poweroff poweroff == poweroff halt -p == poweroff Under what circumstances do you actually get just 'halt' to power the machine off? I thought I updated this bug, and now I feel like a jerk for not doing it because I cannot remember the circumstances or what I did to fix it (other than the above fix). I no longer have the issue though, and thank you for the follow up. If I can provide any info from my current setup, please let me know and I'll post it up. FWIW: I am calling it as root, and I do not get any SELinux errors. Thank you. -Chad OK. For now, closing as WORKSFORME. Package name is now sysvinit in Fedora. |