summaryrefslogtreecommitdiffstats
path: root/debian/rspamd.init
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2014-02-23 00:59:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-02-24 13:17:45 +0000
commit2078340a461fe76708966bb6e3cc0a945f0d0f7e (patch)
treee019f907dea6e637a6d0eaab3c8f4b8768441cb8 /debian/rspamd.init
parentff2954a1a8e76cf44cf15ba1702d5a36b86499c0 (diff)
downloadrspamd-2078340a461fe76708966bb6e3cc0a945f0d0f7e.tar.gz
rspamd-2078340a461fe76708966bb6e3cc0a945f0d0f7e.zip
/var/run is transient, create subdirectory in initscript instead
Diffstat (limited to 'debian/rspamd.init')
-rwxr-xr-xdebian/rspamd.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/rspamd.init b/debian/rspamd.init
index 91b5c6e68..aad89dcfc 100755
--- a/debian/rspamd.init
+++ b/debian/rspamd.init
@@ -55,6 +55,7 @@ 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_USERNAME:$RSPAMD_GROUPNAME -p /var/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 -- \