aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rspamd.init
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-14 14:51:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-14 14:51:22 +0100
commit0de0656c3e72e8587f8af7e61107331236f21bf0 (patch)
tree09a5f9aff3df182cde09b0457baf37d169268216 /debian/rspamd.init
parentfb6469c8959825d9269f2550d35406a5b5986552 (diff)
downloadrspamd-0de0656c3e72e8587f8af7e61107331236f21bf0.tar.gz
rspamd-0de0656c3e72e8587f8af7e61107331236f21bf0.zip
Fix rc scripts
Diffstat (limited to 'debian/rspamd.init')
-rw-r--r--debian/rspamd.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/rspamd.init b/debian/rspamd.init
index 07eba1bd6..6465a8d39 100644
--- a/debian/rspamd.init
+++ b/debian/rspamd.init
@@ -16,6 +16,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Rspamd"
NAME=rspamd
DAEMON=/usr/bin/$NAME
+RSPAMADM=/usr/bin/rspamdadm
DAEMON_ARGS="-c /etc/rspamd/rspamd.sysvinit.conf"
DESC="rapid spam filtering system"
PIDFILE=/run/rspamd/$NAME.pid
@@ -42,7 +43,7 @@ do_start()
# 2 if daemon could not be started
mkdir -m 755 -p /run/rspamd
chown _rspamd:_rspamd /run/rspamd
- start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
+ $RSPAMADM configtest $DAEMON_ARGS > /dev/null \
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
$DAEMON_ARGS -u _rspamd -g _rspamd \