Shutdown from start scripts
Josef Wolf
jw at raven.inka.de
Tue Mar 27 18:27:46 UTC 2007
On Sun, Mar 25, 2007 at 09:11:29AM -0600, Charles Kravetz wrote:
> On Sat, 2007-03-24 at 00:48 +0100, Josef Wolf wrote:
> > I noticed that shutdown from scripts in /etc/rcS.d don't really work.
> >
> > For example, when fsck for some filesystems fails at startup, you
> > are thrown into a shell to fix the problem. From that shell, you
> > have no chance to make a proper reboot. I have tried:
> >
> > - shutdown -r now
> > - init 6
> > - reboot
> > - halt
> >
> > It don't really make a difference how I try to reboot. I alwas get
> > thrown out and the boot process continues. Finally I get the login
> > prompt. But I did _not_ want to continue the boot. I said I want
> > to _shutdown_. Why is this ignored? Is this a problem caused by
> > the change to upstart?
> >
> > Any ideas what I am missing here? How do I properly reboot from
> > a script in /etc/rcS.d?
>
> I don't know if this will work in Edgy, but in Dapper, I discovered that
> using Ctrl-Alt-F1 to change screens and then using the shutdown commands
> sometimes is effective. Also, using a simple "exit" somestimes works.
Thanks for the Answer, Charles! But unfortunately, neither changing
screens nor a simple "exit" dont bring the system down. The boot process
alway continues. _Only_ if the boot continues up to the login prompt,
every method (and ctrl-alt-del) start working. But none of the methods
work before the login prompt.
More information about the ubuntu-users
mailing list