]> source.dussan.org Git - rspamd.git/commitdiff
Use /run/rspamd to store pid file, /var/run is obsolete
authorMikhail Gusarov <dottedmag@dottedmag.net>
Sun, 23 Feb 2014 00:52:43 +0000 (01:52 +0100)
committerMikhail Gusarov <dottedmag@dottedmag.net>
Sun, 23 Feb 2014 00:52:43 +0000 (01:52 +0100)
debian/rspamd.init
debian/rules

index aad89dcfc99b5f2c18b00c88a4c84f91bf1348df..d550b0b568ccfe0f9e741b49c6bc5d5beb2f4e80 100755 (executable)
@@ -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 -- \
index 088a67348bad323fff16c1ab9a6d070e6fdccb8b..3608758eab42968b1632fb8a8d51bdf3e8df4a26 100755 (executable)
@@ -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 \