aboutsummaryrefslogtreecommitdiffstats
path: root/community/bareos/bareos-dir.initd
blob: b4649ddabec01e105c0ea7ddc401270ac28dfcd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/sbin/openrc-run

name="Bareos Director daemon"
pidfile=/run/bareos/bareos-dir.9101.pid
command=/usr/sbin/bareos-dir
command_args="-u bareos -g bareos"

depend() {
	need net
	after firewall
	use dns bareos-fd bareos-sd postgresql mariadb
}

start_pre() {
	checkpath -dm750 -o bareos "${pidfile%/*}"
}