[rrd-developers] rrdcached PID file and socket

kevin brintnall kbrint at rufus.net
Wed Oct 1 15:26:25 CEST 2008


On Wed, Oct 01, 2008 at 09:37:17AM +0100, Daniel.Pocock at barclayscapital.com wrote:
> I've occasionally had segfaults in rrdcached. I'm still investigating
> the root cause.

What SVN version are you running?  Can you send a backtrace?

> - When I try to restart rrdcached, it refuses to run because the PID
> file already exists - maybe it should check the validity of the PID
> file, and delete it if the process has gone away

I think we can do that pretty easily.  I believe kill(pid,0) is portable.

> - After deleting the PID file, I start rrdcached again.  This time, the
> socket file /var/run/rrdcached/rrdcached.sock is still present from the
> instance that segfaulted.  rrdcached deletes the socket file, but then
> aborts.  I then have to start the process again to make it run.

We could bundle this with the previous PID file cleanup...

-- 
 kevin brintnall =~ /kbrint at rufus.net/



More information about the rrd-developers mailing list