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

# munin-node init.d file for alpine linux.

name=munin-node

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

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

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
}