From 0de0656c3e72e8587f8af7e61107331236f21bf0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 14 Oct 2015 14:51:22 +0100 Subject: Fix rc scripts --- debian/rspamd.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'debian') 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 \ -- cgit v1.2.3