summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rspamd.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/rspamd.init b/debian/rspamd.init
index 0c84118da..b531304e4 100755
--- a/debian/rspamd.init
+++ b/debian/rspamd.init
@@ -40,7 +40,8 @@ do_start()
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
- mkdir -m 755 _rspamd:_rspamd -p /run/rspamd
+ mkdir -m 755 -p /run/rspamd
+ chown _rspamd:_rspamd /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 -- \