[Twisted-Python] python-daemon PID file
Hi all, Im trying to get a daemon up and running but i cant get python-daemon to create a PID file. versions: Python 2.5.2 python-daemon-1.5.5 Debian Linux 2.6.26-2-686 <code> import daemon import lockfile daemon.DaemonContext(pidfile=lockfile.FileLock('/var/run/mydaemon.pid'),) daemon.__enter__() main() daemon.__exit__() </code> The above doesnt create a pid file, ive tried different permissions for the daemon and manualy making the pid file in the main() but no luck. In summary: I cant get a PID file created or populated with a PID by python-daemon. Anyone see something that im doing wrong? ive been sitting on this way too long. I looked at the python-daemon source and i cant see where the pid is inserted into the pid file, only where it __enter__'s the lockfile so is this functionality missing? Thanks!
On Mar 19, 2010, at 3:16 PM, null null wrote:
Im trying to get a daemon up and running but i cant get python-daemon to create a PID file. versions: Python 2.5.2 python-daemon-1.5.5 Debian Linux 2.6.26-2-686
This is the mailing list for Twisted, which you do not appear to be using. Twisted also does not use python-daemon, and has pretty much nothing to do with it. For information on python-daemon, including an email address for its author, please see http://pypi.python.org/pypi/python-daemon/. However, if you use the 'twistd' tool which is bundled with Twisted, it will create PID files for you, and you won't have this problem :).
participants (2)
-
Glyph Lefkowitz
-
null null