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

: ${port:=9103}
: ${conf:=/etc/bacula/bacula-dir.conf}
: ${exec_user:=bacula}
: ${exec_group:=bacula}

name="Bacula Storage Daemon"
command="/usr/sbin/$RC_SVCNAME"
command_args="-u $exec_user -g $exec_group -c $conf"
pidfile="/var/run/bacula/$RC_SVCNAME.$port.pid"

depend() {
	need net
	use dns
}

start_pre() {
        checkpath -d -m 0775 -o ${exec_user}:${exec_group} /var/run/bacula
}