[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Daemons

Since SIGTERM is catchable, your code should nicely clean itself up.

On 05/04/2010 06:06 AM, Anand Sivaram wrote:
normally as a part during reboot/shutdown procedure, sigterm is sent
to all processes.  This causes processes to terminate during which file
descriptors are closed down flushing their cache.  This is written to disk
during filesytem sync.
So these files are preserved.  But when the system goes down because of a
power glitch, there are chances that you lose your data from last filesystem

On Tue, May 4, 2010 at 15:10,<export@hope.cz>  wrote:

I have several running daemons  that write some data to files
What happens with these open files when INIT 6 command  is issued?
Are these files that are used by daemons deleted? Or are they closed
regularly and saved ?
And what happens, if the  Linux box is shut down in a dirty way( out of

Dissent is patriotic, remember?

Reply to: