It seems the problem with the initscript is my chrooted nsd setup, if PIDFILE
is not defined in the initscript it automatically gets set to
/var/run/$NAME.pid (which is not true in a chrooted setup). So I guess adding
the PIDFILE line in the initscript is not a general need but just for people
where the pidfile is not where the script would expect it. As I don't know how
many people run initscripts with such a setup I guess fixing this issue is not
a real priority so I leave it up to you if you want to fix this edge case. As
long as nsd-checkconf is there and able to just print out the value of the
pidfile option the change in the initscript should be painless and futureproof.