mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-19 07:31:35 +01:00
24 lines
450 B
Plaintext
24 lines
450 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
: ${port:=9102}
|
|
: ${cfgfile:=/etc/bacula/bacula-fd.conf}
|
|
: ${command_user:=root}
|
|
: ${command_group:=root}
|
|
|
|
name="Bacula File Daemon"
|
|
command="/usr/sbin/${RC_SVCNAME}"
|
|
command_args="-u $command_user -g $command_group -c $cfgfile"
|
|
pidfile="/run/bacula/${RC_SVCNAME}.$port.pid"
|
|
|
|
depend() {
|
|
need net
|
|
use dns
|
|
after firewall
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath --quiet --directory --mode 0775\
|
|
--owner bacula:bacula $(dirname $pidfile)
|
|
}
|
|
|