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): distcache-1.4.5-1 How reproducible: Always Steps to Reproduce: 1. /sbin/service dc_client start or 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 3. Actual results: Nothing there Expected results: Should work Additional info: 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 simple fix.
Fixed in 1.4.5-2.