From owner-freebsd-stable@FreeBSD.ORG Fri Dec 10 06:46:59 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52721106564A for ; Fri, 10 Dec 2010 06:46:59 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f49.google.com (mail-fx0-f49.google.com [209.85.161.49]) by mx1.freebsd.org (Postfix) with ESMTP id D91BA8FC1A for ; Fri, 10 Dec 2010 06:46:58 +0000 (UTC) Received: by fxm19 with SMTP id 19so3146567fxm.36 for ; Thu, 09 Dec 2010 22:46:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=cZVnebtG4q3UaddhH1q0sJ51cIOGL6gfqMXawhxZ0YE=; b=pPpq6jSZYhSduUMcj+My3AB+HrTb3rpeRUcL7BzMyIWvJy8FKvms+p92VcVSIp0sh2 zTOH6WYozJY/QtTkKOfe0GE815AJ8ouH8GpEoH7HoHkoy1S8twUlqfHjGIfjmVzD8ljh 8MqkgzskiUMaz03XO58u1hhZ3hWZ4OY4vYxOU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=O+1MRWBn5vIRCijp7wkOM0C+IryqFfvnavfGn59WP8og1/NIU0JYIYDwqSr2yl7FCQ R62P8OlXyP2sYecuOgqJM/L+vFUQe0+8mDfjp1Tb8CtkKbjR18BuB+ENmE7SsN7iqW3Y 0IZ0U6ONAZaS25UeSCeB/C4uVT/jKITNl35h4= MIME-Version: 1.0 Received: by 10.223.116.1 with SMTP id k1mr449333faq.51.1291963617833; Thu, 09 Dec 2010 22:46:57 -0800 (PST) Received: by 10.223.107.79 with HTTP; Thu, 9 Dec 2010 22:46:57 -0800 (PST) In-Reply-To: <20101210060335.BCDCC1CC12@ptavv.es.net> References: <20101210060335.BCDCC1CC12@ptavv.es.net> Date: Fri, 10 Dec 2010 00:46:57 -0600 Message-ID: From: Adam Vande More To: Kevin Oberman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: /sbin/reboot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2010 06:46:59 -0000 On Fri, Dec 10, 2010 at 12:03 AM, Kevin Oberman wrote: > Unlike reboot, shutdown attempts to cleanly stop all processes. Things > like databases can be badly damaged by a reboot. Other processes save > state when stopped and that is lost with a reboot. > For the correct order, "shutdown -r" calls reboot which calls init which calls rc.shutdown. Doing a shutdown -r is the same as a reboot without the warning to logged in users and shutdown handles the logging instead of reboot. > Also, halt/reboot have options like -n and -q which can disrupt things worse than an unintended clean reboot. shutdown also give operator more possibilities than a clean shutdown some which could be very bad. -- Adam Vande More