> but mind the caveats: Thanks Tim, the main caveat which worries me is the fact that it doesn't get called when being killed by SIGTERM. When I look at implementing the application as Daemon will cause complications.
The implementation looks nice and is certainly the way I would like to go, but unless it'll work when killed by sigterm it likely won't be for me. Thanks Tim, if you're aware of any other methods then give me a shout. Rob -- http://mail.python.org/mailman/listinfo/python-list