diff options
Diffstat (limited to 'sys-process/atop/files')
-rw-r--r-- | sys-process/atop/files/atop.rc | 23 | ||||
-rw-r--r-- | sys-process/atop/files/digest-atop-1.14 | 1 |
2 files changed, 23 insertions, 1 deletions
diff --git a/sys-process/atop/files/atop.rc b/sys-process/atop/files/atop.rc new file mode 100644 index 000000000000..8a6b71587029 --- /dev/null +++ b/sys-process/atop/files/atop.rc @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-process/atop/files/atop.rc,v 1.1 2005/06/14 23:01:10 vapier Exp $ + +start(){ + ebegin "Starting atop" + if [ -f /etc/cron.d/atop ] ; then + start-stop-daemon --start --quiet --exec /etc/atop/atop.daily + eend $? + else + eend 1 "/etc/cron.d/atop doesnt exist!" + fi +} + +stop(){ + ebegin "Stopping atop" + PIDATOP=`ps -lef | grep -- '-w /var/log/atop/atop_' | grep -v grep | awk '{print $4}'` + if [ "$PIDATOP" != "" ] ; then + kill $PIDATOP + fi + eend $? +} diff --git a/sys-process/atop/files/digest-atop-1.14 b/sys-process/atop/files/digest-atop-1.14 index 7f224e13e017..e835cebb3c17 100644 --- a/sys-process/atop/files/digest-atop-1.14 +++ b/sys-process/atop/files/digest-atop-1.14 @@ -1,2 +1 @@ MD5 51ed85ea8d869568bd4038485c753756 atop-1.14.tar.gz 108748 -MD5 9e1db520318f831ff4f5006dc737eaa7 atop-1.9-initscript 521 |