2 more Q's about 386/ix
Conor P. Cahill
cpcahil at virtech.uucp
Tue Dec 19 11:28:05 AEST 1989
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
--
+-----------------------------------------------------------------------+
| Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 !
| Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 |
+-----------------------------------------------------------------------+
More information about the Comp.unix.i386
mailing list