Description: replace /var/run with /run
Author: Marc Haber <mh+debian-packages@zugschlus.de>
Forwarded: via web form
Last-Update: 2016-08-07
--- a/45atoppm
+++ b/45atoppm
@@ -4,7 +4,7 @@
 
 LOGPATH=/var/log/atop
 BINPATH=/usr/bin
-PIDFILE=/var/run/atop.pid
+PIDFILE=/run/atop.pid
 INTERVAL=600		# interval 10 minutes
 CURDAY=`date +%Y%m%d`	# current date in same format
 
--- a/atop.daily
+++ b/atop.daily
@@ -28,7 +28,7 @@ fi
 
 CURDAY=`date +%Y%m%d`
 BINPATH=/usr/bin
-PIDFILE=/var/run/atop.pid
+PIDFILE=/run/atop.pid
 
 # verify if atop still runs for daily logging
 #
--- a/atop.init
+++ b/atop.init
@@ -20,7 +20,7 @@
 # Check existance of binaries 
 [ -f /usr/bin/atop ] || exit 0
 
-PIDFILE=/var/run/atop.pid
+PIDFILE=/run/atop.pid
 RETVAL=0
 
 # See how we were called.
@@ -35,7 +35,7 @@ case "$1" in
 		# Start atop
 		/usr/share/atop/atop.daily&
 	fi
-	touch /var/lock/subsys/atop
+	touch /run/lock/atop
 	;;
 
   stop)
@@ -61,7 +61,7 @@ case "$1" in
 
 		rm $PIDFILE
 	fi
-	rm -f /var/lock/subsys/atop
+	rm -f /run/lock/atop
 	;;
 
   status)
--- a/man/atop.1
+++ b/man/atop.1
@@ -2947,7 +2947,7 @@ processes sorted on memory consumption:
 .SH FILES
 .PP
 .TP 5
-.B /var/run/pacct_shadow.d/
+.B /run/pacct_shadow.d/
 Directory containing the process accounting shadow files that are
 used by
 .I atop
@@ -3010,7 +3010,7 @@ All binary system and process level data
 in compressed format. 
 .PP
 .TP 5
-.BI /var/run/netatop.log
+.BI /run/netatop.log
 File that contains the netpertask structs containing the network
 counters of exited processes. These structs are written by the
 .I netatopd
--- a/man/atopacctd.8
+++ b/man/atopacctd.8
@@ -70,7 +70,7 @@ any more. As soon as at least one client
 daemon continues writing shadow files.
 .PP
 The directory
-.B /var/run
+.B /run
 is used as the default topdirectory.
 Below this top-directory, the source file
 .B pacct_source
@@ -121,17 +121,17 @@ daemon.
 .SH FILES
 .PP
 .TP 5
-.B /var/run/pacct_source
+.B /run/pacct_source
 Regular file to which the kernel writes the process accounting records.
 This file will be regularly truncated.
 .PP
 .TP 5
-.B /var/run/pacct_shadow.d/current
+.B /run/pacct_shadow.d/current
 Regular file containing the sequence number of the current shadow file
 and the maximum number of records per shadow file.
 .PP
 .TP 5
-.B /var/run/pacct_shadow.d/N.paf
+.B /run/pacct_shadow.d/N.paf
 Regular files containing the process accounting records that have
 been copied transparently from the source file (N represents a 10-digit
 sequence number).
--- a/man/atoprc.5
+++ b/man/atoprc.5
@@ -231,7 +231,7 @@ daemon. In this directory, the daemon cr
 .B pacct_shadow.d
 in which files will be written containing the process accounting records.
 The default topdirectory is
-.B /var/run
+.B /run
 and this option only has to be specified when the
 .B atopacctd
 daemon is started with an alternative topdirectory as command line argument.
