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

bharath venkatesh bharathv6.project at
Wed Mar 19 08:06:52 CET 2008

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 not shut down properly previously a  power
failure .. so that my program can do necessary steps if cleaning up is not
done  during its last termination

On Wed, Mar 19, 2008 at 8:25 AM, Gabriel Genellina <gagsl-py2 at>

> En Tue, 18 Mar 2008 09:51:03 -0300, bharath venkatesh
> <bharathv6.project at> 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 when  the
> > process terminats   before the system shuts down
> handling the SYSTERM signal?
> --
> Gabriel Genellina
> --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list