[PATCH] Forking daemon in debug mode, and new start scripts
I understand zdaemon is going away soon, but here's a small patch to Daemon.py to fork if it finds an EVENT_LOG_FILE. Also included is my start/stop scripts (for Unix), and a custom_zodb.py which uses an environment variable ZODB_STORAGE to determine what storage to use. This allows me to use the same codebase for my ZEO client Zopes and local FileStorage Zopes, simply by changing a /etc/defaults style config file, also included. The scripts in their current form may not be entirely suitable, but they provide a point of departure for a slightly better startup mechanism. The non-detaching daemon, however, is just plain annoying. On Unix you can always tail the logfile for the same effect. a. -- Adrian van den Dries adriand@flow.com.au Development team www.dev.flow.com.au FLOW Communications Pty. Ltd. www.flow.com.au
I understand zdaemon is going away soon, but here's a small patch to Daemon.py to fork if it finds an EVENT_LOG_FILE.
Why do you want that? Logging to a file in the background is a useful feature. [snip -- thanks for the scripts]
The non-detaching daemon, however, is just plain annoying. On Unix you can always tail the logfile for the same effect.
I do not understand this remark. Your patch *prevents* the daemon from detaching. So you find your own patch annoying? --Guido van Rossum (home page: http://www.python.org/~guido/)
participants (2)
-
Adrian van den Dries -
Guido van Rossum