From 3902fb12a8dc5f50ec6ba96d698a76188b7739d6 Mon Sep 17 00:00:00 2001 From: Paul Wouters Date: Nov 24 2012 16:54:55 +0000 Subject: - Only run nsdc rebuild hourly cronjob when nsd service is running --- diff --git a/nsd.cron b/nsd.cron index d86905c..faecb2a 100644 --- a/nsd.cron +++ b/nsd.cron @@ -1,9 +1,16 @@ #!/bin/sh -# Paul Wouters +# Paul Wouters + # This folds back zone updates, dynamic updates, etc that nsd records # in the ixfr.db and nsd.db files back into the zone files or vice-versa +# Only check when nsd is actively running +# sysvinit: (service nsd status has useless return codes) +# pidof nsd > /dev/null || exit 0 +# systemd: +systemctl -q is-active nsd.service 2>/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/nsdc" diff --git a/nsd.spec b/nsd.spec index 7b04464..cd84301 100644 --- a/nsd.spec +++ b/nsd.spec @@ -119,6 +119,9 @@ fi %changelog +* Unreleased +- Only run nsdc rebuild hourly cronjob when nsd service is running + * Fri Nov 23 2012 Paul Wouters - 3.2.14-1 - Updated to 32.14 with minor bugfixes and TCP writev support