summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-24 15:31:48 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-24 15:31:48 +0400
commit3dd95c9525babd0ba5be237663132a69ebf71a2a (patch)
tree88e729e0f5bb9fff372d228c3d9a20ef482bccd8 /freebsd
parent1fc9ba1ae166462266d601c50ebfe8da2fb629b3 (diff)
downloadrspamd-3dd95c9525babd0ba5be237663132a69ebf71a2a.tar.gz
rspamd-3dd95c9525babd0ba5be237663132a69ebf71a2a.zip
* Fix CRLF parsing
* Fix pidfile in start script
Diffstat (limited to 'freebsd')
-rwxr-xr-xfreebsd/rspamd.sh.in3
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()