Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!sdd.hp.com!mips!daver!genco!rad From: rad@genco.bungi.com (Bob Daniel) Newsgroups: comp.unix.sysv386 Subject: Re: Rebooting Sys V/386 Keywords: shutdown reboot autoboot Message-ID: <602@genco.bungi.com> Date: 2 Apr 91 04:54:17 GMT References: <563@bigfoot.first.gmd.de> <1991Mar28.173232.1409@virtech.uucp> <570@bigfoot.first.gmd.de> <253@rwing.UUCP> Reply-To: rad@genco.bungi.com (Bob Daniel) Organization: Gentry & Assoc. Excelsior Springs, MO Lines: 25 In article <253@rwing.UUCP> pat@rwing.UUCP (Pat Myrto) writes: >In article <570@bigfoot.first.gmd.de> tmh@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').