From owner-freebsd-questions Wed Aug 18 20:35:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.greatbasin.net (mail.greatbasin.net [207.228.35.39]) by hub.freebsd.org (Postfix) with ESMTP id 1FA1214A12 for ; Wed, 18 Aug 1999 20:35:26 -0700 (PDT) (envelope-from dan@jgl.reno.nv.us) Received: from pandora.home (rno-max5-59.gbis.net [207.228.61.123]) by mail.greatbasin.net (8.9.3/8.9.3) with ESMTP id UAA15335 for ; Wed, 18 Aug 1999 20:35:24 -0700 (PDT) Received: from danco (danco.home [10.0.0.2]) by pandora.home (8.9.3/8.9.2) with SMTP id UAA40299 for ; Wed, 18 Aug 1999 20:34:44 -0700 (PDT) (envelope-from dan@jgl.reno.nv.us) Message-ID: <005101bee9f3$de5cc8e0$0200000a@home> From: "Dan O'Connor" To: References: <6C37EE640B78D2118D2F00A0C90FCB4401105BA8@site2s1> <4.2.0.58.19990818161828.00bdc8e0@toy> <19990818181702.A3248@athena.tera.com> Subject: Re: "shutdown -h now" risk? Date: Wed, 18 Aug 1999 20:34:43 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The 'reboot' man page says this: "The halt and reboot utilities flush the file system cache to disk, send all running processes a SIGTERM (and subsequently a SIGKILL) and, respectively, halt or restart the system...." Then the 'shutdown' man page says this: "The following options are available: ... -o If one of the -h, -p or -r is specified, shutdown will execute halt(8) or reboot(8) instead of sending signal to init(8)." So, I guess the new question is: What's the difference between the way "halt" and "reboot" handle shutdowns versus the way "init" does it? And is one method preferable over the other? Enquiring minds want to know... --Dan ** The thing I like most about Windows 98 is... ** You can download FreeBSD with it! > ``shutdown -r now'' does a shutdown and reboot immediately. > It's ``shutdown now'' that lowers the system from multi-user > to single-user. > > (Unless there was a recent change from 2.2.8 -> 3.2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message