Found this (hopefully) harmless message in the syslog during shutdown sequence: Oct 26 18:23:23 n22 twisted: [-] Stopping protocol <__builtin__.klive_protocol instance at 0xb789fa4c> Oct 26 18:23:23 n22 twisted: [-] Main loop terminated. Oct 26 18:23:23 n22 twisted: [-] Warning: No permission to delete pid file
This might be related due to the fact, that the process runs under the user id klive whereas the file is created under root : n22 ~ # ps -efla | grep twist 5 S klive 5427 1 0 77 0 - 4395 stext 12:11 ? 00:00:00 /usr/bin/python /usr/bin/twistd --uid klive --pidfile /var/run/klive.pid --syslog -oy /usr/share/klive/klive.tac 0 R root 24721 22936 0 77 0 - 417 - 16:07 pts/1 00:00:00 grep --colour=auto twist n22 ~ # ll /var/run/klive.pid -rw------- 1 root root 4 Oct 6 09:46 /var/run/klive.pid
This isn't really a twisted bug. I think that Klive's pidfile should go into a directory of its own inside /var/run -> /var/run/klive and place the pidfile in there. That way you could use twisted with the --uid switch and forget about permission denied warnings when deleting a pidfile. Guys maintaining kernel-misc should be contacted on this. Best regards,
I think Jesus is correct, seems to be a klive init script problem, not twisted. Re-assigning to kernel-misc and cc:ing python. I'll try his suggestion with --uid
This is just a harmless warning coming from twisted; the pid file actually does gets deleted by the init.d script. I don't see any sane way to patch twisted, so I'm closing 'wontfix'.