aboutsummaryrefslogtreecommitdiffstats
path: root/main/atop/atop.initd
blob: 6d471c272129525e57ee6de7cfebacde205ac261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 $?
}