[python-daemon-Bugs][315148] No PID file created

python-daemon-bugs at alioth.debian.org python-daemon-bugs at alioth.debian.org
Sat Aug 22 09:20:56 UTC 2015


python-daemon-Bugs item #315148, was opened at 2015-08-22 11:20 by Jacques-D. Piguet
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413098&aid=315148&group_id=100328

Status: Open
Priority: 3
Submitted By: Jacques-D. Piguet (jdpiguet-guest)
Assigned to: Nobody (None)
Summary: No PID file created 


Initial Comment:
Hello,

Trying to use python-daemon in Python 2.7.
The goal is to put some info on the Adafruit LCD char display.
I can see the display correctly updated.
The problem is that the PID file is not created.

Regards,
Jacques-D.

#!/usr/bin/python
# -*- coding: utf-8 -*-

import daemon
import lockfile

from tempDisp import testProgram

context = daemon.DaemonContext(
    working_directory = '/srv',
    umask = 0o002,
    pidfile = lockfile.FileLock('/var/run/adadisp.pid'),
    )


with context:
    testProgram()

testProgram is working, 



----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413098&aid=315148&group_id=100328



More information about the python-daemon-bugs mailing list