From a85cd70ae45a0752f316a9b827eef8274f6101ab Mon Sep 17 00:00:00 2001 From: Paul Wouters Date: Apr 10 2009 18:58:48 +0000 Subject: Add support to init script, sysconfig file and configure for the location of the nsd.db file. --- diff --git a/nsd.init b/nsd.init index 3bbeef5..3b3e385 100755 --- a/nsd.init +++ b/nsd.init @@ -19,6 +19,7 @@ # Init script default settings NSD_CONF="/etc/nsd/nsd.conf" +NSD_DB="/var/lib/nsd/nsd.db" NSD_PROG="/usr/sbin/nsd" NSD_PIDFILE="/var/run/nsd/nsd.pid" NSD_XFRDFILE="/var/lib/nsd/xfrd.state" diff --git a/nsd.spec b/nsd.spec index 86584ca..0a99707 100644 --- a/nsd.spec +++ b/nsd.spec @@ -27,7 +27,8 @@ consult the REQUIREMENTS document which is a part of this distribution --enable-mmap --with-ssl --enable-nsec3 --enable-nsid \ --with-pidfile=%{_localstatedir}/run/%{name}/%{name}.pid --with-ssl \ --with-user=nsd --with-difffile=%{_localstatedir}/lib/%{name}/ixfr.db \ - --with-xfrdfile=%{_localstatedir}/lib/%{name}/ixfr.state + --with-xfrdfile=%{_localstatedir}/lib/%{name}/ixfr.state \ + --with-dbfile=%{_localstatedir}/lib/%{name}/nsd.db %{__make} %{?_smp_mflags} #convert to utf8 diff --git a/nsd.sysconfig b/nsd.sysconfig index b1e8a07..64f93a9 100644 --- a/nsd.sysconfig +++ b/nsd.sysconfig @@ -11,6 +11,9 @@ OTHER_NSD_OPTS="" # Main configuration file #NSD_CONF="/etc/nsd/nsd.conf" +# NSD DB +#NSD_DB="/var/lib/nsd/nsd.db" + # Path to nsdc program #NSDC_PROG="/usr/sbin/nsd"