shutdown -h now will halt the system not reboot it,
you need 

shutdown -r now

Marcin Kurc
CAD Systems Administrator
Cooper-Standard Automotive 

-----Original Message-----
From: Karsten M. Self [mailto:[EMAIL PROTECTED]
Sent: Monday, April 08, 2002 12:19 PM
To: Debian User List
Subject: Re: Building a single user Internet terminal / Done!


on Mon, Apr 08, 2002, Shawn McMahon ([EMAIL PROTECTED]) wrote:
> begin  quoting what Erik van der Meulen said on Mon, Apr 08, 2002 at
10:32:35AM +0200:
> > 
> > - /usr/local/bin/startkiosk only does 'startx'
> 
> Now make that script do a "shutdown -h now" after startx exits, and all
> you'll have to do to shut down is exit X.  Maybe.

Not recommended.  If X quits abnormally, it will also restart.  What you
want:

   startx_command && shutdown -h now

...which should only restart the system if X is exited normally.  If it
exits with a nonzero status, the system stays up.

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>
http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
   zIWETHEY: Provocative, super smart, and oh yeah, just a little sexy.
     http://z.iwethey.org/forums/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to