diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-24 09:13:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-24 09:13:30 +0000 |
commit | 7ac7f410ad3def56b89fbe59bbcd32ed3b1e199b (patch) | |
tree | 00f51eea887d355d4698346c03afeca75031ede1 /main/atop/atop.initd | |
parent | 8a285f77fa843ac2ca44357f9ce48ed3a856c02d (diff) | |
download | aports-7ac7f410ad3def56b89fbe59bbcd32ed3b1e199b.tar.bz2 aports-7ac7f410ad3def56b89fbe59bbcd32ed3b1e199b.tar.xz |
main/atop: moved from testing
Diffstat (limited to 'main/atop/atop.initd')
-rw-r--r-- | main/atop/atop.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/atop/atop.initd b/main/atop/atop.initd new file mode 100644 index 0000000000..6d471c2721 --- /dev/null +++ b/main/atop/atop.initd @@ -0,0 +1,21 @@ +#!/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 $ + +_daily=/etc/periodic/daily/atop +start(){ + ebegin "Starting atop" + if [ -f "$_daily" ] ; then + start-stop-daemon --start --quiet --exec "$_daily" + eend $? + else + eend 1 "/etc/cron.d/atop doesnt exist!" + fi +} + +stop(){ + ebegin "Stopping atop" + start-stop-daemon --stop --pidfile /var/run/atop.pid + eend $? +} |