diff options
author | Matt Smith <mcs@darkregion.net> | 2011-03-29 23:40:36 -0500 |
---|---|---|
committer | Matt Smith <mcs@darkregion.net> | 2011-03-29 23:40:36 -0500 |
commit | 4346c9975804621d2e276ef1a12c0695dce71eb1 (patch) | |
tree | 2a5e5b38423947a52d303068a2344d2bf6c65d09 /main/nsd/0010-stop-unlink-pid-error.patch | |
parent | f3e054e83191c6bddd83f639c8826e829b790e91 (diff) | |
download | aports-4346c9975804621d2e276ef1a12c0695dce71eb1.tar.bz2 aports-4346c9975804621d2e276ef1a12c0695dce71eb1.tar.xz |
main/nsd: moved from testing
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 000000000..24175df33 --- /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; |