Hi all,<br><br>Im trying to get a daemon up and running but i cant get python-daemon to create a PID file.<br>versions:<br>Python 2.5.2<br>python-daemon-1.5.5<br>Debian
 Linux 2.6.26-2-686<br>
<br>&lt;code&gt;<br>import daemon<br>import lockfile<br><br>daemon.DaemonContext(pidfile=lockfile.FileLock(&#39;/var/run/mydaemon.pid&#39;),)<br><div id=":1gg" class="ii gt"><br>daemon.__enter__()<br>main()<br>daemon.__exit__()<br>
<br>&lt;/code&gt;<br><br>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. <br><br>In summary: I cant get a PID file created or 
populated with a PID by python-daemon.<br>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__&#39;s the lockfile so is this functionality missing?<br><br>
Thanks!</div>