aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2014-02-23 01:52:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-02-24 13:17:45 +0000
commitabd0450d3f5dd80530da68d961b6f5e938e0f767 (patch)
treed86aee43dffdcd5f2825e250de2c70154c46ed68
parent1e5c02555c1e4528526881e53da1a1bc31ed3506 (diff)
downloadrspamd-abd0450d3f5dd80530da68d961b6f5e938e0f767.tar.gz
rspamd-abd0450d3f5dd80530da68d961b6f5e938e0f767.zip
Use /run/rspamd to store pid file, /var/run is obsolete
-rwxr-xr-xdebian/rspamd.init2
-rwxr-xr-xdebian/rules2
2 files changed, 2 insertions, 2 deletions
diff --git a/debian/rspamd.init b/debian/rspamd.init
index aad89dcfc..d550b0b56 100755
--- a/debian/rspamd.init
+++ b/debian/rspamd.init
@@ -55,7 +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
+ 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 -- \
diff --git a/debian/rules b/debian/rules
index 088a67348..3608758ea 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ include /usr/share/cdbs/1/class/cmake.mk
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 \