<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Tue, 01 Nov 2005 09:20:18 -0000</lastBuildDate><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767090</link><description>&amp;lt;ul id="quote"&amp;gt;&amp;lt;h6&amp;gt;Anonymous wrote:&amp;lt;/h6&amp;gt;Reboot and halt DO NOT SAFELY shutdown a system.  reboot is a symlink to halt and halt nukes the platform.  &lt;br&gt;&lt;br&gt;shutdown -rn now is how I usually reboot a machine of mine.  shutdown -r by it's self will sync the disks, -n forces this (I like to be on the safe side).&lt;br&gt;&lt;br&gt;halt just stops the processors and inits the system without syncing disks.  You'll more than likely come back with your system running FSCK on your FS, and you better pray your using ext3.&amp;lt;/ul&amp;gt;&lt;br&gt;&lt;br&gt;What type of idiot response is this.  Have you ever heard of checking argv[0], it tells you how the process was called.  Halt checks this and then runs according to how it was called.&lt;br&gt;&lt;br&gt;&lt;code&gt;if &amp;#40;&amp;#40;progname = strrchr&amp;#40;argv&amp;#91;0&amp;#93;, '/'&amp;#41;&amp;#41; != NULL&amp;#41;&lt;br&gt;                progname++;&lt;br&gt;        else&lt;br&gt;                progname = argv&amp;#91;0&amp;#93;;&lt;br&gt; &lt;br&gt;        if &amp;#40;!strcmp&amp;#40;progname, &amp;quot;reboot&amp;quot;&amp;#41;&amp;#41; do_reboot = 1;&lt;br&gt;        if &amp;#40;!strcmp&amp;#40;progname, &amp;quot;poweroff&amp;quot;&amp;#41;&amp;#41; do_poweroff = 1;&lt;br&gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Moral of this story "think before you open your mouth"</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 01 Nov 2005 09:20:18 -0000</pubDate></item><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767089</link><description>Halt does NOT nuke a system&lt;br&gt;&lt;br&gt;If the system is &lt;strong&gt;not&lt;/strong&gt; in run level 0 or 6 halt/reboot/poweroff &lt;strong&gt;calls shutdown&lt;/strong&gt;&lt;br&gt;&lt;br&gt;so halt is really just a wrapper for shutdown&lt;br&gt;&lt;br&gt;don't believe me? man halt</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 08 Jun 2005 09:12:42 -0000</pubDate></item><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767088</link><description>Reboot and halt DO NOT SAFELY shutdown a system.  reboot is a symlink to halt and halt nukes the platform.  &lt;br&gt;&lt;br&gt;shutdown -rn now is how I usually reboot a machine of mine.  shutdown -r by it's self will sync the disks, -n forces this (I like to be on the safe side).&lt;br&gt;&lt;br&gt;halt just stops the processors and inits the system without syncing disks.  You'll more than likely come back with your system running FSCK on your FS, and you better pray your using ext3.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 09 Dec 2004 01:28:30 -0000</pubDate></item><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767087</link><description>Other than Slack...n openBSD, the reboot and halt are supported by SuSE, Red Hat as well.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 27 Oct 2004 02:22:29 -0000</pubDate></item><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767086</link><description>&amp;lt;ul id="quote"&amp;gt;Most Distros also have an alias which you can type instead:&lt;br&gt;&lt;br&gt;reboot&amp;lt;/ul&amp;gt;&lt;br&gt;&lt;br&gt;That is true. On Slackware Linux, both "halt" and "reboot" work. I know this is also true for OpenBSD.&lt;br&gt;&lt;br&gt;If you'd like a user to be able to shutdown or reboot a machine, the easiest way to do this is through "sudo".</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 28 Sep 2004 01:35:58 -0000</pubDate></item><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767085</link><description>Most Distros also have an alias which you can type instead:&lt;br&gt;&lt;br&gt;&lt;strong&gt;reboot&lt;/strong&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 31 Aug 2004 02:51:39 -0000</pubDate></item><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767084</link><description>This is just telling you it is okay to reboot or shutdown your system after the install.  Most OS installations aren't complete until you've rebooted the system.  Follow the instructions in this recipe to reboot and you should have a shiny new Linux box.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 02 Aug 2004 04:22:30 -0000</pubDate></item><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767083</link><description>hi&lt;br&gt;when i try to install mandrake 10  it says'you may safely reboot or halt your system'.what is this???</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 02 Aug 2004 03:47:13 -0000</pubDate></item><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767082</link><description>init 6 does the same thing</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">killermookie</dc:creator><pubDate>Tue, 20 Jul 2004 09:57:16 -0000</pubDate></item><item><title>Re: Safely reboot a Linux system | Linux | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/180/safely-reboot-a-linux-system/#comment-2767081</link><description>from the shutdown(8) manpage:&lt;br&gt;&lt;br&gt;&lt;code&gt;A lot of users forget to give the time argument and are then puzzled by the error  message  shutdown  produces. The time argument is mandatory; in 90 percent of all cases this argument will be the word now.&lt;/code&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 25 Dec 2003 14:11:46 -0000</pubDate></item></channel></rss>