From 2f891985bdc11e568c777e35d8e7bac5c1ec6f7a Mon Sep 17 00:00:00 2001 From: Sylvain Firmery Date: Sat, 8 Nov 2014 20:05:54 +0100 Subject: [PATCH] Fix owner when creating folder /run/rspamd --- debian/rspamd.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- \ -- 2.39.5