Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153009 - dev-python/twisted-2.4.0: no permission to delete pid file
Summary: dev-python/twisted-2.4.0: no permission to delete pid file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-27 10:23 UTC by Toralf Förster
Modified: 2008-07-13 02:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2006-10-27 10:23:53 UTC
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
Comment 1 Toralf Förster gentoo-dev 2007-10-06 14:08:57 UTC
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
Comment 2 Jesus Rivero (RETIRED) gentoo-dev 2008-07-12 06:12:09 UTC
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,
Comment 3 Rob Cakebread (RETIRED) gentoo-dev 2008-07-12 20:45:16 UTC
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
Comment 4 Rob Cakebread (RETIRED) gentoo-dev 2008-07-13 02:55:32 UTC
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'.