How each distribution implements their shutdown process is up to then, if "shutdown now" doesn't work within your boot sequence, you should contact the distribution to find out what method does work.<br><br><div class="gmail_quote">
On Thu, Feb 17, 2011 at 12:18 PM, Jon Stanley <span dir="ltr"><<a href="mailto:jonstanley@gmail.com">jonstanley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Sorry that I couldn't find a users list to deal with upstart (but then<br>
again, most users probably don't care too much about the init<br>
system... :D). Anyhow, I'm trying (and I've talked to a few people in<br>
person about this) to influence the behavior of upstart from within an<br>
upstart job. This is on RHEL6, which uses 0.6.5 in mostly<br>
compatibility mode.<br>
<br>
To put this in more concrete terms, I have a job that gets run one<br>
time, when a server is first installed. This is done by a very simple<br>
upstart job, and the complexity is in the scripts executed by the job<br>
(basically, I'm using the SysV compatibility wrappers to start a<br>
"runlevel 9". This job is executed at "start on starting rc". When<br>
this job is complete, I need the system to reboot, not continue on<br>
past this job. The job takes care of removing itself on success.<br>
<br>
Trying to use /sbin/init 6, for example, within the job fails to do<br>
anything. The only way that I could find to effect a reboot is to use<br>
something like /sbin/reboot -f, but that has the unfortunate side<br>
effect of an unclean reboot.<br>
<br>
Am I missing something here, or is there really no good way to do this?<br>
<font color="#888888"><br>
--<br>
upstart-devel mailing list<br>
<a href="mailto:upstart-devel@lists.ubuntu.com">upstart-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/upstart-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/upstart-devel</a><br>
</font></blockquote></div><br>