# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
- mkdir -m 755 $RSPAMD_USERNAME:$RSPAMD_GROUPNAME -p /var/run/rspamd
+ mkdir -m 755 $RSPAMD_USERNAME:$RSPAMD_GROUPNAME -p /run/rspamd
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
DEB_CMAKE_NORMAL_ARGS+= -DCONFDIR=/etc/rspamd \
-DMANDIR=/usr/share/man \
- -DRUNDIR=/var/lib/rspamd \
+ -DRUNDIR=/run/rspamd \
-DDBDIR=/var/lib/rspamd \
-DLOGDIR=/var/log/rspamd \
-DPLUGINSDIR=/usr/share/rspamd \