diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-06-14 23:01:10 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-06-14 23:01:10 +0000 |
commit | fe2c825c6b4b432c0bd13b316939806d5c59980f (patch) | |
tree | a8cc6fe5d5c24781fd3fb189a21947effefc8cc7 /sys-process/atop/files | |
parent | Add a permission check to nscd init.d #96108 by Paul Ortyl. (diff) | |
download | gentoo-2-fe2c825c6b4b432c0bd13b316939806d5c59980f.tar.gz gentoo-2-fe2c825c6b4b432c0bd13b316939806d5c59980f.tar.bz2 gentoo-2-fe2c825c6b4b432c0bd13b316939806d5c59980f.zip |
Move init.d script off of mirrors and into $FILESDIR #96054.
(Portage version: 2.0.51.22-r1)
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 |