Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.i386 Subject: Re: 2 more Q's about 386/ix Keywords: displays, shutdown Message-ID: <1989Dec19.002805.3039@virtech.uucp> Date: 19 Dec 89 00:28:05 GMT References: <1910@syma.sussex.ac.uk> Organization: Virtual Technologies Inc. Lines: 23 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 -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+