From owner-freebsd-questions Tue Jun 4 13:28:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA11095 for questions-outgoing; Tue, 4 Jun 1996 13:28:26 -0700 (PDT) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA11089 for ; Tue, 4 Jun 1996 13:28:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by Root.COM (8.7.5/8.6.5) with SMTP id NAA15537; Tue, 4 Jun 1996 13:28:20 -0700 (PDT) Message-Id: <199606042028.NAA15537@Root.COM> X-Authentication-Warning: implode.Root.COM: Host localhost [127.0.0.1] didn't use HELO protocol To: dwhite@resnet.uoregon.edu cc: questions@freebsd.org Subject: Re: shutdown vs shutdown -r In-reply-to: Your message of "Tue, 04 Jun 1996 12:41:51 PDT." From: David Greenman Reply-To: davidg@Root.COM Date: Tue, 04 Jun 1996 13:28:20 -0700 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Other than the obvious reboot, what is the difference between `shutdown' >and `shutdown -r'? A friend of mine has a Linux box that he did this on >and it killed the filesystem, presumably because it didn't sync. does >the FreeBSD version operate in the same way? The main difference is that "shutdown" without any options just shuts down to single user. You must then do one of three things: 1) type "halt", at which point the system will dismount all filesystems and halt. 2) type "reboot", at which point the system will dismount all filesystems and reboot. 3) type ctrl-D. at which point the single user shell will be terminated and the system will come up to multi-user again. >If it doesn't sync, shoudln't this be fixed? or at least have this >behavior relegated to a switch? Maybe have -r be the default action? "shutdown" without options is only used to go to single-user. Perhaps this should be made clear in the manual page. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project