diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-19 15:14:46 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-19 15:14:46 +0400 |
commit | c0b7a87e6aaa8dd90604d470ea6558ff53691e85 (patch) | |
tree | 10e5cfcb7160e48c595b11daa999d976e86e56e6 /freebsd/rspamd.sh.in | |
parent | dec1abd6e4582b74b658db72a7071ce098d1c9e5 (diff) | |
download | rspamd-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-x | freebsd/rspamd.sh.in | 8 |
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" |