From owner-freebsd-questions Mon Mar 11 6:41:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tninet.se (sheridan.tninet.se [195.100.94.102]) by hub.freebsd.org (Postfix) with ESMTP id A660E37B400 for ; Mon, 11 Mar 2002 06:41:12 -0800 (PST) Received: from cs.umu.se (h27n1c1o1023.bredband.skanova.com [213.64.164.27]) by sheridan.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP id 674162.857660.1015.0s4750881sheridan ; Mon, 11 Mar 2002 15:41:00 +0100 Message-ID: <3C8CC1FD.E9DF8C06@cs.umu.se> Date: Mon, 11 Mar 2002 15:41:01 +0100 From: Paul Everlund X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: sv,en MIME-Version: 1.0 To: Chip Wiegand Cc: Henrik Hudson , freebsd-questions@FreeBSD.ORG Subject: Re: proper shutdown command References: <20020310222812.1b78e0cf.chip@wiegand.org> <200203110815.g2B8FCw0064521@smaug.rhavenn.net> <20020311063745.07df8eb6.chip@wiegand.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chip Wiegand wrote: > > On Mon, 11 Mar 2002 02:20:05 -0600 > Henrik Hudson wrote: > > > Reading the manpage for shutdown and for halt: > > > > HALT sends all running processes a SIGTERM and then a SIGKILL if > > needed > > > > SHUTDOWN runs through the INIT shutdown scripts > > > > What does this mean? If ALL your processes can be shutdown via a > > SIGTERM then you're fine, but if you have processes like a MySQL db or > > something which needs a special shutdown command passed to it in order > > to exit cleanly or process something, this will not be executed and > > data corruption or something else nasty "could" occur. > > > > Hope that helped. > > > > Henrik > > That helps, thanks. So, I should be using shutdown instead of halt, > regardless of halt being quicker to type. :-) > > Thanks, > Chip W. If it is too much to type, why don't you make an alias, that can even be shorter than halt? :-) Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message