From 8507777b4ede346b47aafc436295a51890b9cea3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 31 Dec 2023 05:49:48 +0000 Subject: gentoo auto-resync : 31:12:2023 - 05:49:48 --- 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(-) delete mode 100644 sys-process/atop/files/atop.rc-r2 delete mode 100644 sys-process/atop/files/atop.service delete mode 100644 sys-process/atop/files/atopacct.rc delete mode 100644 sys-process/atop/files/atopacct.service (limited to 'sys-process/atop/files') 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 -- cgit v1.2.3