Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!uunet!math.fu-berlin.de!opal!gmdtub!prosun!tmh From: tmh@prosun.first.gmd.de (Thomas Hoberg) Newsgroups: comp.unix.sysv386 Subject: Re: Rebooting Sys V/386 Keywords: shutdown reboot autoboot Message-ID: <581@bigfoot.first.gmd.de> Date: 3 Apr 91 18:35:57 GMT References: <563@bigfoot.first.gmd.de> <1991Mar28.173232.1409@virtech.uucp> <570@bigfoot.first.gmd.de> <253@rwing.UUCP> <602@genco.bungi.com> Sender: news@bigfoot.first.gmd.de Reply-To: tmh@prosun.first.gmd.de (Thomas Hoberg) Organization: GMD-FIRST, D-1000 Berlin 10 Lines: 64 In article <602@genco.bungi.com>, rad@genco.bungi.com (Bob Daniel) writes: |> 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'). Well to round this out and get it done with: If you look at /etc/inittab you should see a line like "rb:6:wait:/etc/uadmin 2 1 >/dev/console 2>&1