Subject: Re: shutdown actions
To: Christos Zoulas <christos@zoulas.com>
From: Anders Magnusson <ragge@ludd.luth.se>
List: port-sparc
Date: 12/28/1997 19:03:01
> In article <v0311070bb0c3cd07b103@[198.68.110.2]> fair@clock.org (Erik E. Fair) writes:
> >In the 4BSD universe, you kill 1, and init sends SIGTERM to everything on
> >the system. Programs that need to clean up after themselves are expected to
> >catch SIGTERM and do whatever they need to do within about 15-30 seconds.
> >After that, init blasts the stragglers with SIGKILL, and if they still
> >don't die, it prints a warning on the console.
> >
> >So, your "shutdown action" should be written in the code, to be run at SIGTERM.
> >
> >	Erik <fair@clock.org>
> 
> This in my opinion sucks about the BSD universe... At the very least
> the grace period should be configurable.
> 
Maybe let shutdown check for /etc/rc.shutdown and, if exists, run
it before telling init to shutdown the rest? 

-- Ragge