aboutsummaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd')
-rwxr-xr-xfreebsd/rspamd.sh.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/freebsd/rspamd.sh.in b/freebsd/rspamd.sh.in
index c19fd3e94..9bc2c6eda 100755
--- a/freebsd/rspamd.sh.in
+++ b/freebsd/rspamd.sh.in
@@ -16,6 +16,9 @@
name="rspamd"
rcvar=`set_rcvar`
procname="@CMAKE_INSTALL_PREFIX@/bin/rspamd"
+restart_precmd="rspamd_checkconfig"
+reload_precmd="rspamd_checkconfig"
+configtest_cmd="rspamd_checkconfig"
load_rc_config $name
@@ -26,7 +29,13 @@ load_rc_config $name
stop_postcmd="rm -f $rspamd_pidfile"
-extra_commands="reload"
+rspamd_checkconfig()
+{
+ echo "Performing sanity check on rspamd configuration:"
+ eval ${command} -t
+}
+
+extra_commands="reload configtest"
sig_reload="USR1"
command="$procname"