gdnsd2: run checkconf before reload/restart

Submitted by:	Andrew Fengler <andrew.fengler@scaleengine.com>
Reviewed by:	matthew
Approved by:	zi (maintainer)
Sponsored by:	ScaleEngine Inc.
Differential Revision:	https://reviews.freebsd.org/D7488
This commit is contained in:
Allan Jude 2016-08-26 19:44:57 +00:00
parent f0ff2870a0
commit 0ec7b47220
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420941
2 changed files with 3 additions and 0 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= gdnsd
PORTVERSION= 2.2.2
PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= https://github.com/gdnsd/gdnsd/releases/download/v${PORTVERSION}/ \
http://mirrors.rit.edu/zi/ \

View file

@ -28,7 +28,9 @@ load_rc_config $name
command="%%PREFIX%%/sbin/gdnsd"
command_args="start"
procname=${command}
restart_precmd="gdnsd_checkconf"
reload_cmd="gdnsd_reload"
reload_precmd="gdnsd_checkconf"
configtest_cmd="gdnsd_checkconf"
extra_commands="reload configtest"
gdnsd_reload()