aboutsummaryrefslogtreecommitdiffstats
path: root/main/collectd/collectd.initd
blob: 9cacf2e0669dd8c4be5bf00f0b59e11fd349864b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run

DAEMON=/usr/sbin/collectd

depend() {
	need net
}

start() {
	ebegin "Starting collectd"
	start-stop-daemon --start --exec $DAEMON -- $collectd_options
	eend $?
}

stop () {
	ebegin "Stopping collectd"
	start-stop-daemon --stop --exec $DAEMON
	eend $?
}