How do I gracefully exit/shutdown a "remote" machine?
Robert Brockway
rbrockway-wgAaPJgzrDxH4x6Dk/4f9A at public.gmane.org
Mon Jul 18 21:44:51 UTC 2005
On Mon, 18 Jul 2005, Walter Dnes wrote:
> To keep the PIII functional as a "hot backup" machine, I boot it once
> a week, ssh into it from the P4, su to root, run gentoo linux updates,
> and shut it down. What happens is that "halt -p" shuts down the PIII
> and I have to go to another tty (on the P4), "ps -ef", get the PID of
> the ssh logon to the PIII, and issue a "kill -3" on it. I've tried
> stuff like "nohup halt -p &", followed by a couple of quick "exit"
A few options:
1. Did you try nohup "halt -p &> /dev/null &" ?
2. You could start the halt in a screen session on the PIII and then
detach it.
3. My favourite: Setup a serial console and use minicom to halt the box.
This is doubly useful in that you'll only need to connect a
monitor/keyboard to the PIII if you want to access the BIOS.
Rob
--
Robert Brockway B.Sc. Phone: +1-416-669-3073
Senior Technical Consultant Email: support-wgAaPJgzrDxH4x6Dk/4f9A at public.gmane.org
OpenTrend Solutions Ltd. Web: www.opentrend.net
We are open 24x7x365 for technical support. Call us in a crisis.
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list