summaryrefslogtreecommitdiff
path: root/sys-process/atop/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-31 05:49:48 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-31 05:49:48 +0000
commit8507777b4ede346b47aafc436295a51890b9cea3 (patch)
tree46a68cda616dee4775957fd9ef618c124b9b1b75 /sys-process/atop/files
parentbb262580ec0b56a32797f121e627928d103e6bb1 (diff)
gentoo auto-resync : 31:12:2023 - 05:49:48
Diffstat (limited to 'sys-process/atop/files')
-rw-r--r--sys-process/atop/files/atop.rc-r28
-rw-r--r--sys-process/atop/files/atop.service11
-rw-r--r--sys-process/atop/files/atopacct.rc40
-rw-r--r--sys-process/atop/files/atopacct.service14
4 files changed, 0 insertions, 73 deletions
diff --git a/sys-process/atop/files/atop.rc-r2 b/sys-process/atop/files/atop.rc-r2
deleted file mode 100644
index ce66821dbdd5..000000000000
--- a/sys-process/atop/files/atop.rc-r2
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-description="Resource-specific view of processes"
-pidfile="/var/run/atop.pid"
-command="/usr/share/atop/atop.daily"
-command_background="true"
diff --git a/sys-process/atop/files/atop.service b/sys-process/atop/files/atop.service
deleted file mode 100644
index 09295b9acd12..000000000000
--- a/sys-process/atop/files/atop.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Atop advanced performance monitor
-Documentation=man:atop(1)
-
-[Service]
-Type=simple
-ExecStart=/etc/atop/atop.daily
-KillSignal=SIGUSR2
-
-[Install]
-WantedBy=multi-user.target
diff --git a/sys-process/atop/files/atopacct.rc b/sys-process/atop/files/atopacct.rc
deleted file mode 100644
index c68ca3e6b3a8..000000000000
--- a/sys-process/atop/files/atopacct.rc
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-description="Resource-specific view of processes"
-command="/usr/sbin/atopacctd"
-lockfile="/var/lock/subsys/atopacctd"
-
-start_pre() {
- # Check if process accounting already in use via psacct
- for PACCTFILE in /var/account/pacct /var/log/pacct ; do
- if [ -f "${PACCTFILE}" ] ; then
- BEFORSIZE=$(stat -c %s "${PACCTFILE}")
- AFTERSIZE=$(stat -c %s "${PACCTFILE}")
-
- # verify if accounting file grows, so is in use
- if [ ${BEFORSIZE} -lt ${AFTERSIZE} ] ; then
- ewarn "Process accounting already used by psacct!"
- return 1
- fi
- fi
- done
-
- checkpath -d -q ${lockfile%/*} || return 1
-}
-
-start() {
- ebegin "Starting atopacctd"
- start-stop-daemon --start --exec ${command}
- touch ${lockfile}
- eend $?
-}
-
-stop() {
- ebegin "Stopping atopacctd"
- start-stop-daemon --stop --exec ${command}
- rm ${lockfile}
- eend $?
-}
-
diff --git a/sys-process/atop/files/atopacct.service b/sys-process/atop/files/atopacct.service
deleted file mode 100644
index 1f51ec41916a..000000000000
--- a/sys-process/atop/files/atopacct.service
+++ /dev/null
@@ -1,14 +0,0 @@
-[Unit]
-Description=Atop process accounting daemon
-Documentation=man:atopacctd(8)
-Conflicts=psacct.service
-After=syslog.target
-Before=atop.service
-
-[Service]
-Type=forking
-PIDFile=/var/run/atopacctd.pid
-ExecStart=/usr/sbin/atopacctd
-
-[Install]
-WantedBy=multi-user.target