Red Hat Bugzilla – Bug 120711
dc_client fails to create pid file
Last modified: 2007-11-30 17:10:40 EST
Description of problem:
By default, dc_client attemtps to create /var/run/dc_client.pid as
nobody. This doesn't work as as /var/run is not writeable by any
others than root.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. /sbin/service dc_client start
1. "/usr/bin/dc_client -pidfile /var/run/distcache/dc_client.pid
-listen UNIX:/var/cache/mod_ssl/distcache -sockowner apache -sockperms
0600 -user nobody -server IP:localhost:5555"
3. ps ax|grep dc_client
I guess the easiest thing would be to create /var/run/distcache and
let nobody:nobody write to it. Alternatively the pid file creation
could be moved to an earlier point in the code but I'm not sure if
that is smart.
It is worth to note that dc_server does not suffer from the same problem.
Thanks for the report; this is a regression since 0.4.x. Yes, it
should just write the pidfile before going setuid nobody, it's a
Fixed in 1.4.5-2.