mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 18:22:30 +01:00
27 lines
768 B
Diff
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;
|