summaryrefslogtreecommitdiff
path: root/security/opendnssec/files
diff options
context:
space:
mode:
authorhe <he>2014-10-31 16:32:39 +0000
committerhe <he>2014-10-31 16:32:39 +0000
commit0b5a1f2f4ce46311d97b52048b987afabc747a79 (patch)
tree0cb1d6e2466d16be83548cd75d223a02f616b880 /security/opendnssec/files
parent92060f36178052fdf8bee7577fe16cb21dd6cc95 (diff)
downloadpkgsrc-0b5a1f2f4ce46311d97b52048b987afabc747a79.tar.gz
Fix a bug related to restoring various data from .xfrd-state files:
there's no need to byte-swap values read from a local file. This would cause some IXFRs to mysteriously and consistently fail until manual intervention is done, because the wrong (byte-swapped) SOA serial# was being stuffed into the IXFR requests. Ref. https://issues.opendnssec.org/browse/SUPPORT-147. Also fix the rc.d script to not insist that the components must be running to allow "stop" to proceed, so that "restart" or "stop" can be done if one or both of the processes have exited or crashed. Bump PKGREVISION.
Diffstat (limited to 'security/opendnssec/files')
-rwxr-xr-xsecurity/opendnssec/files/opendnssec.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/security/opendnssec/files/opendnssec.sh b/security/opendnssec/files/opendnssec.sh
index 369aab00b07..81e6b976547 100755
--- a/security/opendnssec/files/opendnssec.sh
+++ b/security/opendnssec/files/opendnssec.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: opendnssec.sh,v 1.1 2014/10/28 13:26:37 he Exp $
+# $NetBSD: opendnssec.sh,v 1.2 2014/10/31 16:32:39 he Exp $
#
# PROVIDE: opendnssec
@@ -85,9 +85,8 @@ ods_stop () {
echo 1>&2 "$signer not running (no $signerd_pidfile file)"
rv=$(($rv + 1))
fi
- if [ $rv != 0 ]; then
- exit $rv
- fi
+
+# Ignore warnings, so that we can stop or restart if one component has crashed
$ods_control stop