KEYWORD: shutdown
Jilles Tjoelker
jilles at stack.nl
Wed Nov 16 17:38:58 UTC 2011
On Wed, Nov 16, 2011 at 06:35:51PM +0200, Andriy Gapon wrote:
> I am new to all the rc stuff, so please pardon me if I am asking
> something obvious or silly. What are the main reasons to _not_ have
> the "shutdown" keyword in an rc script? What are the examples /
> usages?
Traditionally only very few scripts had "shutdown", leaving most of the
cleanup to the SIGTERM and SIGKILL from init.
Because it was fairly complicated to get this right (for example, a
database server needs "shutdown" but also all programs that use it), a
few years ago it was decided to add "shutdown" everywhere. The slower
shutdown (a few seconds at most on machines with decent CPUs, but
possibly rather more on slow embedded machines) was accepted.
--
Jilles Tjoelker
More information about the freebsd-rc
mailing list