[Twisted-Python] pidfile in twistd

William Hanwoody hanwoody at gmail.com
Sun Dec 31 04:11:28 EST 2006

when I run a service through twistd
# twistd --pidfile service.pid  -y service.py

in logfile, I see:
 Warning: No permission to delete pid file

Because I run this service as ordinary user, not root:
application = service.Application("serviceMine", uid, gid)
, but the owner of pidfile is still root, not ordinary user!
so when I shutdown this service, this pid file cannot be deleted!

William Hanwoody                             hanwoody at gmail.com

A senior Linux engineer, like system integrate
My blog - hanwoody.livejournal.com

More information about the Twisted-Python mailing list