mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
- remove unneeded scripts - fix permissions for config-dirs, scripts and binaries - fix init-scripts to run with non-root user
16 lines
303 B
Text
16 lines
303 B
Text
#!/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%/*}"
|
|
}
|