commit:     c178370cc41fd7194e0289592538df9a15103cb7
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Fri Dec 29 14:22:56 2023 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Dec 31 02:36:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c178370c

sys-process/atop: remove unused files

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/34541
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 sys-process/atop/files/atop.rc-r2       |  8 -------
 sys-process/atop/files/atop.service     | 11 ---------
 sys-process/atop/files/atopacct.rc      | 40 ---------------------------------
 sys-process/atop/files/atopacct.service | 14 ------------
 4 files changed, 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

Reply via email to