From owner-freebsd-stable@FreeBSD.ORG Fri Dec 10 07:35:02 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29FB5106564A for ; Fri, 10 Dec 2010 07:35:02 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (wollman-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:ccb::2]) by mx1.freebsd.org (Postfix) with ESMTP id D31498FC1A for ; Fri, 10 Dec 2010 07:35:01 +0000 (UTC) Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.14.4/8.14.4) with ESMTP id oBA7Z0u1005353; Fri, 10 Dec 2010 02:35:00 -0500 (EST) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.14.4/8.14.4/Submit) id oBA7Z0S1005352; Fri, 10 Dec 2010 02:35:00 -0500 (EST) (envelope-from wollman) Date: Fri, 10 Dec 2010 02:35:00 -0500 (EST) From: Garrett Wollman Message-Id: <201012100735.oBA7Z0S1005352@hergotha.csail.mit.edu> To: amvandemore@gmail.com X-Newsgroups: mit.lcs.mail.freebsd-stable In-Reply-To: References: <20101210060335.BCDCC1CC12@ptavv.es.net> Organization: none X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (hergotha.csail.mit.edu [127.0.0.1]); Fri, 10 Dec 2010 02:35:00 -0500 (EST) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hergotha.csail.mit.edu Cc: 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 07:35:02 -0000 In article , amvandemore@gmail.com writes: >For the correct order, "shutdown -r" calls reboot which calls init which >calls rc.shutdown. No. shutdown(8) sends a SIGINT to init(8), which runs rc.shutdown and then calls reboot(2) as its last act. reboot(8) freezes init(8), then sends a SIGTERM to anything left running, then sends a SIGKILL to anything left running, then calls reboot(2) as its last act. >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. Not even close. -GAWollman