summaryrefslogtreecommitdiff
path: root/net-analyzer/munin/files/munin-asyncd.init.2
blob: 59ef4c6b0280fcb85f75d160c36b4b3ff63e5590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

command=/usr/libexec/munin/munin-asyncd
command_args="--fork"
pidfile="/run/munin-asyncd.pid"
start_stop_daemon_args="--background --make-pidfile --user munin-async"

depend() {
	need munin-node
	before cron
}

start_pre() {
	checkpath -d -o munin-async:munin -m 0750 /var/spool/munin-async
}

# vim: filetype=gentoo-init-d: