Re: automatically doing some cleaning-up by the process when the systems shuts down

2008-03-19 Thread Gabriel Genellina
En Wed, 19 Mar 2008 04:28:19 -0300, bharath venkatesh <[EMAIL PROTECTED]> escribió: > handling SIGTERM allowed me to do cleaning up while the system shuts > down > but as i mentioned previously how can my process know if the system > was > not shut down properly previously Sorry about t

Re: automatically doing some cleaning-up by the process when the systems shuts down

2008-03-19 Thread bharath venkatesh
handling SIGTERM allowed me to do cleaning up while the system shuts down but as i mentioned previously how can my process know if the system was not shut down properly previously On Wed, Mar 19, 2008 at 12:36 PM, bharath venkatesh < [EMAIL PROTECTED]> wrote: > hi , > thanks Gabriel ... b

Re: automatically doing some cleaning-up by the process when the systems shuts down

2008-03-19 Thread bharath venkatesh
hi , thanks Gabriel ... but r u sure if it is SYSTERM ?or is it SIGTERM ? I am not aware of any SYSTERM signal .. if it is SYSTERM please tell me more about it .. as google search is not helping .. and also is there some way for my process which is running as a daemon to know that system was

Re: automatically doing some cleaning-up by the process when the systems shuts down

2008-03-18 Thread Gabriel Genellina
En Tue, 18 Mar 2008 09:51:03 -0300, bharath venkatesh <[EMAIL PROTECTED]> escribió: > my programs runs as daemon and it does some logging .. when system > shuts down .. which may be done manually . i want my process do some > cleaning up automatically such as writing in to the log file w

automatically doing some cleaning-up by the process when the systems shuts down

2008-03-18 Thread bharath venkatesh
hi .. my programs runs as daemon and it does some logging .. when system shuts down .. which may be done manually . i want my process do some cleaning up automatically such as writing in to the log file when the process terminats before the system shuts down