Rebooting Sys V/386

Bob Daniel rad at genco.bungi.com
Tue Apr 2 14:54:17 AEST 1991


In article <253 at rwing.UUCP> pat at rwing.UUCP (Pat Myrto) writes:
>In article <570 at bigfoot.first.gmd.de> tmh at prosun.first.gmd.de (Thomas Hoberg) writes:
>>        [ lots of previous thread deleted ... ]
>>I don't know
>>whether the system call uadmin will in some variation do without the
>>"press any key to reboot" prompt on the console or not. I didn't want to try.
>
>There HAS to be some way to do the reboot without the hang on the
>"press any key to reboot" msg: running fsck -b on the root partition
>returns the msg SYSTEM WILL REBOOT AUTOMATICALLY, and the reboot
>starts without requiring ANY user intervention, no pause for pressing
>a key, or anything.  Probably whatever call fsck -b makes is what the
>party wants...  perhaps some variant of the uadmin(2) call?
>-- 

For AT&T SysV 3.2.3, a simple:
shutdown -y -g0 -i6
will reboot the system.  'g' being the grace period before shutdown starts.

If you want to do it remotely or on another terminal, copy /etc/shutdown
to say /etc/shutdown2, strip out the portion that checks that you are
on /dev/console.  Then do
shutdown2 -y -g0 -i6

This gives you shutdown with reboot on any port (as long as you are 'su').



More information about the Comp.unix.sysv386 mailing list