aboutsummaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-21 03:47:28 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-21 03:47:28 +0400
commitd0dbd1aa3a95c5a1f354458033f6af2b8f01a4a5 (patch)
tree8eeb5071c8ddfd02a16656cc94a1e69892324b1e /freebsd
parent91cbed7c0143bd581f0034c57ea00da479412784 (diff)
downloadrspamd-d0dbd1aa3a95c5a1f354458033f6af2b8f01a4a5.tar.gz
rspamd-d0dbd1aa3a95c5a1f354458033f6af2b8f01a4a5.zip
* Add raw mode flag for improving performance by avoiding expensive utf8 transforms
* Improve FreeBSD start script by adding config test precmd
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"