2 more Q's about 386/ix
Karl Denninger
karl at ddsw1.MCS.COM
Thu Dec 21 05:41:12 AEST 1989
In article <1989Dec19.002805.3039 at virtech.uucp> cpcahil at virtech.uucp (Conor P. Cahill) writes:
>In article <S4NKS- at utower.gopas.sub.org>, fischer at utower.gopas.sub.org (Axel Fischer) writes:
>> jonm at 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 at ddsw1.MCS.COM, <well-connected>!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"
More information about the Comp.unix.i386
mailing list