[nsd-users] nsd[6775]: failed to unlink pidfile /var/run/nsd/nsd.pid: Permission denied

Paul Wouters paul at xelerance.com
Tue Nov 29 19:01:00 UTC 2011


nsd[6775]: failed to unlink pidfile /var/run/nsd/nsd.pid: Permission denied


I think this is an old bug?

The daemon creates the pid as root, and "nsdc restart" has no root permission
to replace the pid file.

As a workaround, I will create the /var/run/nsd dir with group nsd, and change
the initscript to use:

[ -d $NSD_PIDDIR ] || mkdir -p $NSD_PIDDIR && chown nsd $NSD_PIDDIR

But this is really an nsd bug to fix.

Paul



More information about the nsd-users mailing list