[Python-Dev] new module proposal: daemonize (original) (raw)
Guido van Rossum guido at python.org
Thu Dec 11 18:07:14 EST 2003
- Previous message: [Python-Dev] new module proposal: daemonize
- Next message: [Python-Dev] new module proposal: daemonize
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The attached module encapsulates all that is necessary to make your python script into a Unix daemon. It also provides a way to redirect your process's stdout to a log file. You call daemonize.daemonize() and when it returns your code is now a daemon (disconnected from a terminal and stdio).
This (or something like it) looks like a useful addition.
I remember writing a much more elaborate version for Zope:
http://cvs.zope.org/Zope/lib/python/zdaemon/
(Ignore Daemon.py, which is the old Zope API for the same thing.)
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] new module proposal: daemonize
- Next message: [Python-Dev] new module proposal: daemonize
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]