diff options
author | Alan Somers <asomers@FreeBSD.org> | 2017-05-20 02:27:54 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2017-05-20 02:27:54 +0000 |
commit | 41a8b72ca8519c41fe4894fb35eed6432b18dd6d (patch) | |
tree | 7ad43e30b6c6f30ef8d162e630a1c0d838ef3ae6 /dns/ddclient | |
parent | 89e9977d0c5ee2cc8fef42368e4f91a039de179d (diff) |
Notes
Diffstat (limited to 'dns/ddclient')
-rw-r--r-- | dns/ddclient/Makefile | 2 | ||||
-rw-r--r-- | dns/ddclient/files/ddclient_force.in | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/dns/ddclient/Makefile b/dns/ddclient/Makefile index 2f2c35c8bdbf..0bcdb45fd685 100644 --- a/dns/ddclient/Makefile +++ b/dns/ddclient/Makefile @@ -3,7 +3,7 @@ PORTNAME= ddclient PORTVERSION= 3.8.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= dns MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} diff --git a/dns/ddclient/files/ddclient_force.in b/dns/ddclient/files/ddclient_force.in index 871e8643bb92..28a2f043a51a 100644 --- a/dns/ddclient/files/ddclient_force.in +++ b/dns/ddclient/files/ddclient_force.in @@ -16,9 +16,16 @@ case "$daily_ddclient_force_enable" in echo echo 'Forcing ddclient update:' - out=`%%PREFIX%%/sbin/ddclient -force` - echo "$out" - rc=0 + # sleep randomly to reduce congestion on dyn dns server. In + # FreeBSD 12.0 the anticongestion function should be used + # instead of a hard-coded sleep + if [ -n "$anticongestion_sleeptime" ]; then + anticongestion + else + sleep `jot -r 1 0 900` + fi + + %%PREFIX%%/sbin/ddclient -force || rc=3 ;; *) rc=0 |