diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-01-29 22:33:00 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2017-01-29 22:33:00 +0000 |
| commit | ace5731aabbd00dd686dcf91ceff8f1be5ba0343 (patch) | |
| tree | 13c2fbf1df210863d6573f33ba027a1302e70def /pdns_recursor.in | |
| parent | 2a4f382499af9e58edf5d7ed1358912c45678b6f (diff) | |
Notes
Diffstat (limited to 'pdns_recursor.in')
| -rw-r--r-- | pdns_recursor.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pdns_recursor.in b/pdns_recursor.in index 2919e7d0ff37..ad2d922dc4de 100644 --- a/pdns_recursor.in +++ b/pdns_recursor.in @@ -34,7 +34,6 @@ NL=" " : ${pdns_service:=pdns_recursor} -: ${pdns_restart:=@RESTARTCMD ${pdns_service}@} newzones= @@ -68,5 +67,12 @@ if [ ! -f "$pdns_zones" ] || \ [ "$(cat "$pdns_zones")" != "$(printf %s "$newzones")" ] then printf %s "$newzones" >"$pdns_zones" - eval $pdns_restart + if [ -n "$pdns_restart" ]; then + eval $pdns_restart + elif [ -n "$RESTARTCMD" ]; then + set -- ${pdns_service} + eval $RESTARTCMD + else + @SBINDIR@/resolvconf -r ${pdns_service} + fi fi |
