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
_______________________________________________________________