aboutsummaryrefslogtreecommitdiffstats
path: root/freebsd/rspamd.sh.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-19 15:14:46 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-19 15:14:46 +0400
commitc0b7a87e6aaa8dd90604d470ea6558ff53691e85 (patch)
tree10e5cfcb7160e48c595b11daa999d976e86e56e6 /freebsd/rspamd.sh.in
parentdec1abd6e4582b74b658db72a7071ce098d1c9e5 (diff)
downloadrspamd-c0b7a87e6aaa8dd90604d470ea6558ff53691e85.tar.gz
rspamd-c0b7a87e6aaa8dd90604d470ea6558ff53691e85.zip
* Reopen log file by USR1 signal
* Add reopenlog method to FreeBSD rc script
Diffstat (limited to 'freebsd/rspamd.sh.in')
-rwxr-xr-xfreebsd/rspamd.sh.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/freebsd/rspamd.sh.in b/freebsd/rspamd.sh.in
index d58259008..d01b3394c 100755
--- a/freebsd/rspamd.sh.in
+++ b/freebsd/rspamd.sh.in
@@ -37,7 +37,13 @@ rspamd_checkconfig()
eval ${command} -t
}
-extra_commands="reload configtest"
+reopenlog_cmd()
+{
+ export sig_reload="USR1"
+ run_rc_command reload
+}
+
+extra_commands="reload configtest reopenlog"
sig_reload="HUP"
command="$procname"