diff options
Diffstat (limited to 'main/nsd/0010-stop-unlink-pid-error.patch')
-rw-r--r-- | main/nsd/0010-stop-unlink-pid-error.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/main/nsd/0010-stop-unlink-pid-error.patch b/main/nsd/0010-stop-unlink-pid-error.patch new file mode 100644 index 0000000000..24175df337 --- /dev/null +++ b/main/nsd/0010-stop-unlink-pid-error.patch @@ -0,0 +1,26 @@ +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; |