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

# munin-node init.d file for alpine linux.
name="munin-node"
description="Daemon for reporting statistics on system performance"

pidfile=/run/munin/${name}.pid

command=/usr/sbin/munin-node
command_args="${EXTRA_OPTS}"

depend() {
	need net
	after firewall
}

start_pre() {
	checkpath -d -o munin:munin -m755 /run/munin
	checkpath -d -o munin:munin -m755 /var/lib/munin/spool
	checkpath -d -o munin:munin -m755 /var/log/munin
}