From: Marc Haber <mh+debian-packages@zugschlus.de>
Date: Sun, 25 May 2025 20:54:51 +0200
Subject: replace /var/run with /run

Forwarded: via web form
Last-Update: 2016-08-07
---
 45atoppm        | 2 +-
 atop.daily      | 2 +-
 atop.init       | 6 +++---
 man/atop.1      | 4 ++--
 man/atopacctd.8 | 8 ++++----
 man/atoprc.5    | 2 +-
 6 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/45atoppm b/45atoppm
index 231979d..d359d76 100755
--- 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
 
diff --git a/atop.daily b/atop.daily
index d44fd15..2508426 100755
--- 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
 #
diff --git a/atop.init b/atop.init
index be60584..3764201 100755
--- 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)
diff --git a/man/atop.1 b/man/atop.1
index f161de5..9802ea3 100644
--- a/man/atop.1
+++ b/man/atop.1
@@ -3087,7 +3087,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
@@ -3147,7 +3147,7 @@ All binary system and process level data in this file has been stored
 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
diff --git a/man/atopacctd.8 b/man/atopacctd.8
index 4e014a7..0be957a 100644
--- a/man/atopacctd.8
+++ b/man/atopacctd.8
@@ -70,7 +70,7 @@ any more. As soon as at least one client is activate again, the
 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).
diff --git a/man/atoprc.5 b/man/atoprc.5
index 43daf1a..c23c771 100644
--- a/man/atoprc.5
+++ b/man/atoprc.5
@@ -235,7 +235,7 @@ daemon. In this directory, the daemon creates a subdirectory
 .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.
