mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
Previous commit to knot.in was truncated causing the rc script to be
broken. Submitted by: erwin Sponsored by: SupraNet Communications, Inc
This commit is contained in:
parent
79113a51e4
commit
5445cec046
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344879
@ -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/
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user