diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-24 15:31:48 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-24 15:31:48 +0400 |
commit | 3dd95c9525babd0ba5be237663132a69ebf71a2a (patch) | |
tree | 88e729e0f5bb9fff372d228c3d9a20ef482bccd8 /freebsd/rspamd.sh.in | |
parent | 1fc9ba1ae166462266d601c50ebfe8da2fb629b3 (diff) | |
download | rspamd-3dd95c9525babd0ba5be237663132a69ebf71a2a.tar.gz rspamd-3dd95c9525babd0ba5be237663132a69ebf71a2a.zip |
* Fix CRLF parsing
* Fix pidfile in start script
Diffstat (limited to 'freebsd/rspamd.sh.in')
-rwxr-xr-x | freebsd/rspamd.sh.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/freebsd/rspamd.sh.in b/freebsd/rspamd.sh.in index 9068907c4..5bb3a5cc2 100755 --- a/freebsd/rspamd.sh.in +++ b/freebsd/rspamd.sh.in @@ -19,7 +19,6 @@ procname="@CMAKE_INSTALL_PREFIX@/bin/rspamd" restart_precmd="rspamd_checkconfig" reload_precmd="rspamd_checkconfig" configtest_cmd="rspamd_checkconfig" -pidfile="/var/run/rspamd/rspamd.pid" load_rc_config $name @@ -28,6 +27,8 @@ load_rc_config $name : ${rspamd_user="@RSPAMD_USER@"} : ${rspamd_group="@RSPAMD_GROUP@"} +pidfile="$rspamd_pidfile" + stop_postcmd="rm -f $rspamd_pidfile" rspamd_checkconfig() |