summaryrefslogtreecommitdiff
blob: a270d70d735289f61a8a9fef1c2f6cca43f552f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

depend() {
	use net
}

start() {
	ebegin "Starting NewRelic System Monitor"
	start-stop-daemon --start \
		--user newrelic \
		--exec /usr/sbin/nrsysmond -- \
		-c /etc/newrelic/nrsysmond.cfg \
		-p /var/run/newrelic/nrsysmond.pid
	eend $?
}

stop() {
	ebegin "Stopping NewRelic System Monitor"
	start-stop-daemon --stop --pidfile /var/run/newrelic/nrsysmond.pid
	eend $?
}