From: Mikhail Gusarov Date: Sun, 23 Feb 2014 00:52:43 +0000 (+0100) Subject: Use /run/rspamd to store pid file, /var/run is obsolete X-Git-Tag: 0.6.9~10^2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7d5177d5aa90fe802e0dcf291dad00354fd3be96;p=rspamd.git Use /run/rspamd to store pid file, /var/run is obsolete --- 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 \