Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jun 1996 13:28:20 -0700
From:      David Greenman <davidg@Root.COM>
To:        dwhite@resnet.uoregon.edu
Cc:        questions@freebsd.org
Subject:   Re: shutdown vs shutdown -r 
Message-ID:  <199606042028.NAA15537@Root.COM>
In-Reply-To: Your message of "Tue, 04 Jun 1996 12:41:51 PDT." <Pine.BSF.3.91.960604123633.6276A-100000@riley-net170-164.uoregon.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606042028.NAA15537>