Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!brutus.cs.uiuc.edu!psuvax1!rutgers!mcdchg!ddsw1!karl From: karl@ddsw1.MCS.COM (Karl Denninger) Newsgroups: comp.unix.i386 Subject: Re: 2 more Q's about 386/ix Summary: Init 5 & 6 are useful remote Keywords: displays, shutdown Message-ID: <1989Dec20.184112.3495@ddsw1.MCS.COM> Date: 20 Dec 89 18:41:12 GMT References: <1910@syma.sussex.ac.uk> <1989Dec19.002805.3039@virtech.uucp> Reply-To: karl@mcs.MCS.COM (Karl Denninger) Organization: Macro Computer Solutions, Inc. - Mundelein, IL Lines: 27 In article <1989Dec19.002805.3039@virtech.uucp> cpcahil@virtech.uucp (Conor P. Cahill) writes: >In article , fischer@utower.gopas.sub.org (Axel Fischer) writes: >> jonm@syma.sussex.ac.uk (Jonathan Meyer) writes: >> >Is it possible to run shutdown from anything other than the console VT? >> >Sometimes I would like to be able to reboot my system safely from a remote >> >login, but can't. >> >> Easy: >> - login from remote >> - make yourself root (via "su" or whatever) >> - cd / ; sync ; sync >> - /etc/init 0 > >This does not work for 386/ix. Init will tell you that you must be >on the console to run "init 0". The best solution is to run >/etc/shutdown -g0 -y (or /etc/init 0) < /dev/console At least for us, the following works from any terminal if you are root: init 5 # Power down and STAY down init 6 # Reboot -- Karl Denninger (karl@ddsw1.MCS.COM, !ddsw1!karl) Public Access Data Line: [+1 708 566-8911], Voice: [+1 708 566-8910] Macro Computer Solutions, Inc. "Quality Solutions at a Fair Price"