Date: Mon, 11 Mar 2002 16:09:05 +0100 From: Roman Neuhauser <neuhauser@mobil.cz> To: freebsd-questions@FreeBSD.ORG Subject: Re: proper shutdown command Message-ID: <20020311150905.GC63612@roman.mobil.cz> In-Reply-To: <20020311063745.07df8eb6.chip@wiegand.org> References: <20020310222812.1b78e0cf.chip@wiegand.org> <200203110815.g2B8FCw0064521@smaug.rhavenn.net> <20020311063745.07df8eb6.chip@wiegand.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Mon, 11 Mar 2002 06:37:45 +0000 > From: Chip Wiegand <chip@wiegand.org> > To: Henrik Hudson <lists@rhavenn.net> > Cc: freebsd-questions@FreeBSD.ORG > Subject: Re: proper shutdown command > > On Mon, 11 Mar 2002 02:20:05 -0600 > Henrik Hudson <lists@rhavenn.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020311150905.GC63612>