From c0b7a87e6aaa8dd90604d470ea6558ff53691e85 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 19 Jul 2010 15:14:46 +0400 Subject: * Reopen log file by USR1 signal * Add reopenlog method to FreeBSD rc script --- freebsd/rspamd.sh.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'freebsd') 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" -- cgit v1.2.3