[nsd/el5] * pull in nsd.cron fix from el6

Paul Wouters pwouters at fedoraproject.org
Fri Feb 1 17:02:19 UTC 2013


commit 7b820941bdf09f809d99035c946e33c8a6b059ad
Author: Paul Wouters <pwouters at redhat.com>
Date:   Fri Feb 1 12:01:57 2013 -0500

    * pull in nsd.cron fix from el6

 nsd.cron |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/nsd.cron b/nsd.cron
index 53cce56..e5d5de3 100644
--- a/nsd.cron
+++ b/nsd.cron
@@ -1,9 +1,16 @@
 #!/bin/sh
 
-# Paul Wouters <paul at xelerance.com>
+# Paul Wouters <pwouters at redhat.com>
+
 # 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
+# systemd:
+# systemctl -q is-active nsd.service 2>/dev/null || exit 0
+# 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/nsdc"


More information about the scm-commits mailing list