diff options
author | feld <feld@FreeBSD.org> | 2014-02-18 20:39:42 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2014-02-18 20:39:42 +0800 |
commit | 8d33ed521d5bd45b912f86f44ee40ae0a71ee90f (patch) | |
tree | 63ee533062204ebc30fa835a7f38bb0e03f1c6f9 /dns | |
parent | 32223e595351d14778e4a6f851a1051241b253c7 (diff) | |
download | freebsd-ports-gnome-8d33ed521d5bd45b912f86f44ee40ae0a71ee90f.tar.gz freebsd-ports-gnome-8d33ed521d5bd45b912f86f44ee40ae0a71ee90f.tar.zst freebsd-ports-gnome-8d33ed521d5bd45b912f86f44ee40ae0a71ee90f.zip |
Previous commit to knot.in was truncated causing the rc script to be
broken.
Submitted by: erwin
Sponsored by: SupraNet Communications, Inc
Diffstat (limited to 'dns')
-rw-r--r-- | dns/knot/Makefile | 2 | ||||
-rw-r--r-- | dns/knot/files/knot.in | 12 |
2 files changed, 10 insertions, 4 deletions
diff --git a/dns/knot/Makefile b/dns/knot/Makefile index 01d6313fbcca..bd23bf261398 100644 --- a/dns/knot/Makefile +++ b/dns/knot/Makefile @@ -3,7 +3,7 @@ PORTNAME= knot DISTVERSION= 1.4.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= dns ipv6 MASTER_SITES= https://secure.nic.cz/files/knot-dns/ \ http://dns-lab.com/downloads/knot-dns/ diff --git a/dns/knot/files/knot.in b/dns/knot/files/knot.in index 20a17cfec69f..3ea4219a11af 100644 --- a/dns/knot/files/knot.in +++ b/dns/knot/files/knot.in @@ -34,7 +34,8 @@ extra_commands=reload reload_cmd="${name}_reload" start_precmd="${name}_prestart" -knot_prestart() { +knot_prestart() +{ if [ ! -d /var/run/knot ]; then install -d -o %%USERS%% -g %%GROUPS%% /var/run/knot fi @@ -46,7 +47,12 @@ knot_prestart() { echo "Notice: not running as uid.gid knot.knot or bind.bind" fi ${control} -c ${knot_config} checkconf - } +} -knot_reload() { +knot_reload() +{ echo "Reloading ${name}." + ${control} -c ${knot_config} reload +} + +run_rc_command "$1" |