summaryrefslogtreecommitdiff
blob: f05db6a0e15bc4c4183ab108c9190aab8bca7738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/sbin/openrc-run
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

start() {
	ebegin "Starting atop"
	start-stop-daemon --start --quiet --exec /etc/atop/atop.daily
	eend $?
}

stop() {
	ebegin "Stopping atop"
	start-stop-daemon --stop --exec /usr/bin/atop --pidfile /var/run/atop.pid
	eend $?
}