Red Hat Bugzilla – Bug 431107
halt script does not work with upstart
Last modified: 2014-06-18 04:46:08 EDT
If you attempt to shutdown/reboot/halt, the halt script just ends up looping
Have we decided if patching killall5 will work for this?
It doesn't loop any more, but it doesn't do the right thing either.
This is an upstart bug, at least as far as SysV compatibility goes.
halt/reboot under SysV check the runlevel when they run - if it's 0 or 6
(reboot/halt), then 'force' is implied. upstart's versions don't have that code,
so they just call shutdown again, which starts the loop/hangs.
Patch attached momentarily.
Created attachment 295051 [details]
check runlevel in halt/reboot, set --force accordingly
Do we want to apply just this patch to upstart, or both this patch and the
no-kill-init sysv patch?
I'll roll this in to the rpm tonight. Scott, care to weigh in?
That patch is definitely the right solution ;)
It didn't affect us because our sysv scripts called halt/reboot with --force anyway
Well played then :) Rebuilt upstart package is in koji.
We still end up re-executing init on shutdown, but this no longer creates this
issue. I may open another bug about that but for now its no big deal.