1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
|
From: Marc Haber <mh+debian-packages@zugschlus.de>
Date: Sun, 25 May 2025 20:54:51 +0200
Subject: replace /var/run with /run
Forwarded: https://atoptool.nl/
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 4e502a7..b6c466e 100644
--- a/man/atop.1
+++ b/man/atop.1
@@ -3193,7 +3193,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
@@ -3253,7 +3253,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 01d4ef9..8cb825b 100644
--- a/man/atoprc.5
+++ b/man/atoprc.5
@@ -248,7 +248,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.
|