aports/main/nsd/0010-stop-unlink-pid-error.patch
2011-03-29 23:40:36 -05:00

27 lines
768 B
Diff

This patch prevents nsd from attempting to unlink the pidfile on nsd
shutdown. The reason for this is because we get a permission denied
error in nsd.log when it attempts to do so.
I think this is needed because of how normal OpenRC init scripts are
designed and handled.
See the included /etc/init.d/nsd (nsd.initd) for my conversion of the
nsdc script that's normally distributed with nsd. The included nsdc
script is a wrapper for the converted OpenRC init script, designed to
maintain compatibility.
Matt Smith <msmith@alpinelinux.org>
--- a/server.c
+++ b/server.c
@@ -1167,7 +1167,7 @@
close(fd);
/* Unlink it if possible... */
- unlinkpid(nsd->pidfile);
+ //unlinkpid(nsd->pidfile);
if(reload_listener.fd > 0) {
sig_atomic_t cmd = NSD_QUIT;