Re: shutdown computer after the halt command
On 02/08/2011 01:26 AM, Eitan Adler wrote: if I use the *halt* command I just see the system is halted press any key to reboot How can I fix this? shutdown -p now don't use halt directly Thanks works as expected ... Regards, alokat ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
shutdown computer after the halt command
Hi, if I use the *halt* command I just see the system is halted press any key to reboot How can I fix this? * Halt* should cut off my laptop. Regards, alokat ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
On Tue Feb 8 11, Alokat wrote: Hi, if I use the *halt* command I just see the system is halted press any key to reboot How can I fix this? * Halt* should cut off my laptop. try 'shutdown -p now' Regards, alokat -- a13x ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
On Tue, 2011-02-08 at 01:06 +0100, Alokat wrote: Hi, if I use the *halt* command I just see the system is halted press any key to reboot How can I fix this? halt -p NOTE: May require ACPI support loaded into the kernel. -- Devin * Halt* should cut off my laptop. Regards, alokat ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
if I use the *halt* command I just see the system is halted press any key to reboot How can I fix this? shutdown -p now don't use halt directly -- Eitan Adler ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
On Mon, 2011-02-07 at 19:26 -0500, Eitan Adler wrote: if I use the *halt* command I just see the system is halted press any key to reboot How can I fix this? shutdown -p now don't use halt directly There's no technical reason to avoid using halt directly other than the fact that shutdown sends a message to connected users while halt does not. -- Devin P.S. I welcome the rebuttle as a learning experience if the above is not 100% accurate and true (but be-warned... I went around the office polling _really_ old UNIX hands before making the above statement). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
On Mon, 2011-02-07 at 19:26 -0600, Adam Vande More wrote: On Mon, Feb 7, 2011 at 7:13 PM, Devin Teske dte...@vicor.com wrote: There's no technical reason to avoid using halt directly other than the fact that shutdown sends a message to connected users while halt does not. -- Devin P.S. I welcome the rebuttle as a learning experience if the above is not 100% accurate and true (but be-warned... I went around the office polling _really_ old UNIX hands before making the above statement). I used to believe that until I was shown I was wrong. The easiest way to see you're wrong is to drop to ttyv0 then do one of each like a reboot then a shutdown -r now. In the latter case, you'll notice /etc/rc.d/ and /usr/local/etc/rc.d/ stop scripts being processed but not so in the former. In both types of shutdowns, everything *should* exit cleanly but processes are terminated with different signals and certain types of applications really need the full rc stop script to end cleanly like HAST and CARP for example. shutdown -r/p is a really good habit to form. FWIW, someone also stated reboot on Linux behaves like shutdown -r now so that I sure contributes to the confusion. Thank you very much for the explanation! Yes, I (we) had completely forgotten about the shutdown scripts. Of course, many of us still remember the days when it standard fare to sync; sync; halt. -- Devin -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
Allow me to split hairs here. I was taught sync;sync;sync;halt. One for the father, one for the son, one for the holy spirit. This, of course, in the days when I/O was slow enough that sync didn't have time to finish before the halt, so doing it three times ensured your file system shut down cleanly. Dave On 02/07/11 17:38, Devin Teske wrote: On Mon, 2011-02-07 at 19:26 -0600, Adam Vande More wrote: On Mon, Feb 7, 2011 at 7:13 PM, Devin Teskedte...@vicor.com wrote: There's no technical reason to avoid using halt directly other than the fact that shutdown sends a message to connected users while halt does not. -- Devin P.S. I welcome the rebuttle as a learning experience if the above is not 100% accurate and true (but be-warned... I went around the office polling _really_ old UNIX hands before making the above statement). I used to believe that until I was shown I was wrong. The easiest way to see you're wrong is to drop to ttyv0 then do one of each like a reboot then a shutdown -r now. In the latter case, you'll notice /etc/rc.d/ and /usr/local/etc/rc.d/ stop scripts being processed but not so in the former. In both types of shutdowns, everything *should* exit cleanly but processes are terminated with different signals and certain types of applications really need the full rc stop script to end cleanly like HAST and CARP for example. shutdown -r/p is a really good habit to form. FWIW, someone also stated reboot on Linux behaves like shutdown -r now so that I sure contributes to the confusion. Thank you very much for the explanation! Yes, I (we) had completely forgotten about the shutdown scripts. Of course, many of us still remember the days when it standard fare to sync; sync; halt. -- Devin -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Dave Robison Sales Solution Architect II FIS Banking Solutions 510/621-2089 (w) 530/518-5194 (c) 510/621-2020 (f) da...@vicor.com david.robi...@fisglobal.com _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
On Mon, 07 Feb 2011 17:38:50 -0800, Devin Teske dte...@vicor.com wrote: Of course, many of us still remember the days when it standard fare to sync; sync; halt. Erm... what about sync; sync; init 0? :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
On Mon, Feb 7, 2011 at 7:13 PM, Devin Teske dte...@vicor.com wrote: There's no technical reason to avoid using halt directly other than the fact that shutdown sends a message to connected users while halt does not. -- Devin P.S. I welcome the rebuttle as a learning experience if the above is not 100% accurate and true (but be-warned... I went around the office polling _really_ old UNIX hands before making the above statement). I used to believe that until I was shown I was wrong. The easiest way to see you're wrong is to drop to ttyv0 then do one of each like a reboot then a shutdown -r now. In the latter case, you'll notice /etc/rc.d/ and /usr/local/etc/rc.d/ stop scripts being processed but not so in the former. In both types of shutdowns, everything *should* exit cleanly but processes are terminated with different signals and certain types of applications really need the full rc stop script to end cleanly like HAST and CARP for example. shutdown -r/p is a really good habit to form. FWIW, someone also stated reboot on Linux behaves like shutdown -r now so that I sure contributes to the confusion. -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
I used to believe that until I was shown I was wrong. The easiest way to see you're wrong is to drop to ttyv0 then do one of each like a reboot then a shutdown -r now. In the latter case, you'll notice /etc/rc.d/ and /usr/local/etc/rc.d/ stop scripts being processed but not so in the former. Uh, no. shutdown or halt signals init, and init runs /etc/rc.shutdown which runs all the shutdown scripts. The only extra work that shutdown does is to blat lots of warnings onto the ttys. Read the man pages for shutdown, halt, and init if you believe otherwise. Regards, John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies, Please consider the environment before reading this e-mail. http://jl.ly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
On Mon, Feb 7, 2011 at 8:54 PM, John Levine jo...@iecc.com wrote: I used to believe that until I was shown I was wrong. The easiest way to see you're wrong is to drop to ttyv0 then do one of each like a reboot then a shutdown -r now. In the latter case, you'll notice /etc/rc.d/ and /usr/local/etc/rc.d/ stop scripts being processed but not so in the former. Uh, no. shutdown or halt signals init, and init runs /etc/rc.shutdown which runs all the shutdown scripts. The only extra work that shutdown does is to blat lots of warnings onto the ttys. Read the man pages for shutdown, halt, and init if you believe otherwise.http://jl.ly Yes please do so as that's not what it says at all although I think could certainly be a worded better. It's quite easy to see you're wrong, just follow the steps I outlined above. If you are correct, reboot(8) should print things like: Stopping sshd. to the console. It doesn't and shutdown(8) does so the proof is right there. The reboot man page only hints at it though unfortunately which caused my initial confusion(in addition to the permissions mismatch between the two). Normally, the shutdown(8) utility is used when the system needs to be halted or restarted, giving users advance warning of their impending doom and cleanly terminating specific programs. You can also reference init.c if you still think you're correct. In addition, please read carefully through this thread and then examine your arguments vs what is reality and then we can all be on the same page. http://lists.freebsd.org/pipermail/freebsd-stable/2010-December/060519.html -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
It's quite easy to see you're wrong, just follow the steps I outlined above. If you are correct, reboot(8) should print things like: Stopping sshd. to the console. Sigh. I shut down my FreeBSD 8.1 laptop all the time with halt -p, and I can assure you it prints all those messages. You can also reference init.c if you still think you're correct. No thanks, I've already read the man page for init, including this paragraph: When shutting down the machine, init will try to run the /etc/rc.shutdown script. This script can be used to cleanly terminate specific programs such as innd (the InterNetNews server). If this script does not termi- nate within 120 seconds, init will terminate it. The timeout can be con- figured via the sysctl(8) variable kern.init_shutdown_timeout. If you're unfamiliar with rc.shutdown, it also has a man page. Perhaps your copy of FreeBSD was installed incorrectly, or it's been so long since you tried halt or reboot that you forgot what happened. Regards, John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies, Please consider the environment before reading this e-mail. http://jl.ly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
On Mon, Feb 7, 2011 at 9:31 PM, John R. Levine jo...@iecc.com wrote: It's quite easy to see you're wrong, just follow the steps I outlined above. If you are correct, reboot(8) should print things like: Stopping sshd. to the console. Sigh. I shut down my FreeBSD 8.1 laptop all the time with halt -p, and I can assure you it prints all those messages. Are you hitting the bottle hard tonight? It does no such thing. You can also reference init.c if you still think you're correct. No thanks, I've already read the man page for init, including this paragraph: When shutting down the machine, init will try to run the /etc/rc.shutdown script. This script can be used to cleanly terminate specific programs such as innd (the InterNetNews server). If this script does not termi- nate within 120 seconds, init will terminate it. The timeout can be con- figured via the sysctl(8) variable kern.init_shutdown_timeout. Exactly, reboot(8) doesn't call init, shutdown(8) does. See reboot.c, shutdown.c -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
On Mon, Feb 7, 2011 at 7:31 PM, John R. Levine jo...@iecc.com wrote: It's quite easy to see you're wrong, just follow the steps I outlined above. If you are correct, reboot(8) should print things like: Stopping sshd. to the console. Sigh. I shut down my FreeBSD 8.1 laptop all the time with halt -p, and I can assure you it prints all those messages. Well, that's not what everyone else sees. You can also reference init.c if you still think you're correct. No thanks, I've already read the man page for init, including this paragraph: That man page hasn't been more than minorly tweaked in over 10 years, according to cvsweb. Perhaps your copy of FreeBSD was installed incorrectly, or it's been so long since you tried halt or reboot that you forgot what happened. Just did - it kills all process and moves to the syncing disks stage. Nothing rc related is touched. -- Rob Farmer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: shutdown computer after the halt command
Hmmn, I looked at the code and by golly you're right, halt/reboot doesn't poke init. Nonetheless, I really do see a lot of foo stopping messages when I use halt, presumably because the SIGTERM that halt/reboot sends has the same effect (if not the same ordering) as the ones that the various rc.d scripts send. Looks like init 0 would be tidier than halt -p, and in the finest Unix tradition, is one less character to type. Regards, John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies, Please consider the environment before reading this e-mail. http://jl.ly ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org