Re: Not stopping daemons, where are we?
]] Ben Finney
| Felipe Sateler <email@example.com> writes:
| > I still don't understand why a SIGTERM is needed. If proper cleanup
| > is not needed, why not just SIGKILL and be done with it? Is there a
| > real reason?
| My understanding only:
| It is preferable for processes to clean up after themselves, which is
| the semantic of SIGTERM. Only those processes which were not able to
| do so in a timely manner will be abruptly killed with SIGKILL.
But if you have cleanups to do, you should have a proper stop script (or
you have a race condition). (If it's just about removing shared memory
segments and such, there's no need to clean up -- the system is about to
go away anyway.)
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are