diff options
-rw-r--r-- | sys-process/atop/files/atop.rc-r2 | 8 | ||||
-rw-r--r-- | sys-process/atop/files/atop.service | 11 | ||||
-rw-r--r-- | sys-process/atop/files/atopacct.rc | 40 | ||||
-rw-r--r-- | sys-process/atop/files/atopacct.service | 14 |
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 |