On Mon, Apr 4, 2011 at 10:53 AM, Clint Byrum <span dir="ltr"><<a href="mailto:clint@ubuntu.com">clint@ubuntu.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Excerpts from James Hunt's message of Mon Apr 04 03:31:34 -0700 2011:<br>
<div class="im">> Well, I think the main issue is really with the sysvinit package and the<br>
> openvt job configuration file. It does beg the question though how a<br>
> "pure" Upstart installation (in other words a system with no SysV legacy<br>
> support) would/should handle shutdown cleanly. One option of course<br>
> would be to create a shutdown.conf that stopped all jobs (ensuring it<br>
> stopped itself last of course :-)<br>
<br>
</div>I think a pure upstart system still would have an event like 'runlevel 6'<br>
where a user wants a reboot, and 'runlevel 0' where the user wants the box<br>
to halt. The only difference is, I think they'd call these 'reboot' and<br>
'halt', and there'd be a shutdown-process job that defined the order.<br>
Things that want to insert themselves in this would simply start on<br>
starting/stopped any of these tasks.<br>
<br></blockquote><div>"reboot", "poweroff" and "halt"</div><div><br></div><div>Though I was thinking that they might instead be:</div><div><br></div><div> shutdown FOR=reboot|poweroff|halt</div>
<div><br></div><div>since the reason you're shutting down is pretty much irrelevant for the most part.</div><div><br></div><div>I also remember Johan suggesting that we replace "startup" with a "system" state, in which case it'd be more like:<br>
</div><div><br></div><div> system pre-stop SHUTDOWN=reboot|poweroff|halt</div><div> <processes killed and filesystems unmounted by init here></div><div> system post-stop SHUTDOWN=reboot|poweroff|halt</div><div> <init calls reboot()></div>
<div><br></div><div>That might make some amount of sense instead.</div><div><br></div><div>Scott</div></div>