From owner-freebsd-questions Mon Mar 11 6:56: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.cz (diana.mobil.cz [194.228.200.160]) by hub.freebsd.org (Postfix) with ESMTP id 8526A37B41B for ; Mon, 11 Mar 2002 06:55:51 -0800 (PST) Received: from ester.mobil.cz (ester.mobil.cz [194.213.62.23]) by mobil.cz (8.11.6/8.11.0) with ESMTP id g2BEtn123521 for ; Mon, 11 Mar 2002 15:55:50 +0100 Received: from roman.mobil.cz ([10.2.0.89]) by ester.mobil.cz (Lotus Domino Release 5.0.7) with ESMTP id 2002031115514148:4818 ; Mon, 11 Mar 2002 15:51:41 +0100 Received: (from roman@localhost) by roman.mobil.cz (8.11.6/8.11.6) id g2BF95728012 for freebsd-questions@FreeBSD.ORG; Mon, 11 Mar 2002 16:09:05 +0100 (CET) (envelope-from neuhauser@mobil.cz) X-Authentication-Warning: roman.mobil.cz: roman set sender to neuhauser@mobil.cz using -f Date: Mon, 11 Mar 2002 16:09:05 +0100 From: Roman Neuhauser To: freebsd-questions@FreeBSD.ORG Subject: Re: proper shutdown command Message-ID: <20020311150905.GC63612@roman.mobil.cz> Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20020310222812.1b78e0cf.chip@wiegand.org> <200203110815.g2B8FCw0064521@smaug.rhavenn.net> <20020311063745.07df8eb6.chip@wiegand.org> Mime-Version: 1.0 In-Reply-To: <20020311063745.07df8eb6.chip@wiegand.org> User-Agent: Mutt/1.3.26i X-MIMETrack: Itemize by SMTP Server on ester/Mobil(Release 5.0.7 |March 21, 2001) at 03/11/2002 03:51:41 PM, Serialize by Router on ester/Mobil(Release 5.0.7 |March 21, 2001) at 03/11/2002 03:51:48 PM, Serialize complete at 03/11/2002 03:51:48 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > Date: Mon, 11 Mar 2002 06:37:45 +0000 > From: Chip Wiegand > To: Henrik Hudson > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: proper shutdown command > > On Mon, 11 Mar 2002 02:20:05 -0600 > Henrik Hudson wrote: > > > 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. > > That helps, thanks. So, I should be using shutdown instead of halt, > regardless of halt being quicker to type. :-) you can define an alias. this is what I use (in zsh): alias halt='shutdown -h now' alias reboot='shutdown -r now' if you use more than one shell and want to avoid creating the same aliases for each of them, put a shell script wrapper somewhere in your path (and make sure the directory is before /sbin in $PATH). -- FreeBSD 4.4-STABLE 4:04PM up 11 days, 17:11, 19 users, load averages: 0.03, 0.07, 0.07 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message