aboutsummaryrefslogtreecommitdiff
path: root/net/relayd
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2016-05-21 10:13:11 +0000
committerLars Engels <lme@FreeBSD.org>2016-05-21 10:13:11 +0000
commite6c87d2ddde3d4794659d0c32e568e5958431396 (patch)
treef2bd9d014059f62a4ae7ec552cc6ad78affe85da /net/relayd
parent9f23fc7f44f265773e37a950e9114d2991a48bc5 (diff)
downloadports-e6c87d2ddde3d4794659d0c32e568e5958431396.tar.gz
ports-e6c87d2ddde3d4794659d0c32e568e5958431396.zip
Notes
Diffstat (limited to 'net/relayd')
-rw-r--r--net/relayd/files/relayd.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/relayd/files/relayd.in b/net/relayd/files/relayd.in
index 3fe6baacbefb..5353245d4188 100644
--- a/net/relayd/files/relayd.in
+++ b/net/relayd/files/relayd.in
@@ -22,9 +22,18 @@ load_rc_config $name
command="%%PREFIX%%/sbin/relayd"
relayctl="%%PREFIX%%/sbin/relayctl"
+start_precmd="relayd_checkconfig"
+reload_precmd="relayd_checkconfig"
+restart_precmd="relayd_checkconfig"
reload_cmd="relayd_reload_cmd"
extra_commands="reload"
+relayd_checkconfig()
+{
+ echo "Performing sanity check on relayd configuration:"
+ eval ${command} ${relayd_flags} -n
+}
+
relayd_reload_cmd () {
${relayctl} reload
}