diff --git a/nsd-keygen.service b/nsd-keygen.service deleted file mode 100644 index 327115e..0000000 --- a/nsd-keygen.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=NSD Control Key And Certificate Generator -After=syslog.target -Before=nsd.service -ConditionPathExists=!/etc/nsd/nsd_control.key - -[Service] -Type=oneshot -Group=nsd -ExecStart=/usr/sbin/nsd-control-setup -d /etc/nsd/ -ExecStart=/sbin/restorecon /etc/nsd/* -RemainAfterExit=yes - -[Install] -WantedBy=multi-user.target diff --git a/nsd-write.service b/nsd-write.service deleted file mode 100644 index bf62b42..0000000 --- a/nsd-write.service +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=write changed zonefiles to disk -Documentation=man:nsd-control(8) - -[Service] -Type=oneshot -User=nsd -ExecStart=/usr/sbin/nsd-control -c /etc/nsd/nsd.conf write diff --git a/nsd-write.timer b/nsd-write.timer deleted file mode 100644 index f125b9f..0000000 --- a/nsd-write.timer +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=hourly write changed zonefiles to disk -Documentation=man:nsd-control(8) - -[Timer] -OnBootSec=10m -Persistent=true -OnUnitInactiveSec=1h - -[Install] -WantedBy=timers.target diff --git a/nsd.conf b/nsd.conf index be2d3e1..733122a 100644 --- a/nsd.conf +++ b/nsd.conf @@ -126,7 +126,7 @@ server: # write changed zonefiles to disk, every N seconds. # default is 0(disabled) or 3600(if database is ""). - # zonefiles-write: 3600 + zonefiles-write: 3600 # RRLconfig # Response Rate Limiting, size of the hashtable. Default 1000000. diff --git a/nsd.cron b/nsd.cron deleted file mode 100644 index 9871613..0000000 --- a/nsd.cron +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -# Paul Wouters - -# This folds back zone updates, dynamic updates, etc that nsd records -# in the nsd.db file back into the zone files - -# Only check when nsd is actively running -# sysvinit: (service nsd status has useless return codes) -pidof nsd > /dev/null || exit 0 - -# Default settings - do not edit these but /etc/sysconfig/nsd instead! -NSD_CONF="/etc/nsd/nsd.conf" -NSDC_PROG="/usr/sbin/nsd-control" -NSD_CHECKCONF_PROG="/usr/sbin/nsd-checkconf" - -# Read in local settings. -[ -r /etc/sysconfig/nsd ] && . /etc/sysconfig/nsd - -# needed to avoid useless AVC rhbz#989218 -cd ~nsd - -${NSDC_PROG} -c ${NSD_CONF} write > /dev/null 2>&1 diff --git a/nsd.init b/nsd.init index d0f64b2..247fb07 100755 --- a/nsd.init +++ b/nsd.init @@ -21,7 +21,6 @@ NSD_CONF="/etc/nsd/nsd.conf" NSD_PROG="/usr/sbin/nsd" NSD_PIDFILE="/var/run/nsd/nsd.pid" -NSD_XFRDFILE="/var/lib/nsd/xfrd.state" NSDC_PROG="/usr/sbin/nsd-control" NSD_USER="nsd" NSD_PIDDIR="$(dirname ${NSD_PIDFILE})" @@ -75,14 +74,10 @@ start() { stop() { echo -n $"Stopping nsd: " - # save state to zonefiles - ${NSDC_PROG} -c ${NSD_CONF} write > /dev/null 2>&1 killproc -p ${NSD_PIDFILE} ${NSD_PROG} RETVAL=$? if [ $RETVAL -eq 0 ] ; then rm -f /var/lock/subsys/nsd - # ensure notifies are sent at startup - rm -f ${NSD_XFRDFILE} success else failure @@ -120,7 +115,6 @@ case "$1" in echo -n $"Reloading nsd:" killproc -p ${NSD_PIDFILE} ${NSD_PROG} -HUP RETVAL=$? - ${NSDC_PROG} -c ${NSD_CONF} notify >/dev/null 2>&1 &1 || : %changelog +* Wed Jan 20 2016 Paul Wouters - 4.1.7-4 +- Remove cronjob and enable zonefiles-write: in nsd.conf instead +- Do not manually run nsd-control notify - daemon already does when needed +- Do not remove xfrd.state state information + * Mon Dec 28 2015 Paul Wouters - 4.1.7-3 - Merge: Sun Dec 27 2015 Tuomo Soini - 4.1.7-2 - Enable PrivateTmp for nsd.service