aboutsummaryrefslogtreecommitdiffstats
path: root/community/bareos/bareos-dir.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/bareos/bareos-dir.initd')
-rw-r--r--community/bareos/bareos-dir.initd9
1 files changed, 7 insertions, 2 deletions
diff --git a/community/bareos/bareos-dir.initd b/community/bareos/bareos-dir.initd
index 1ea2b6aecc..b4649ddabe 100644
--- a/community/bareos/bareos-dir.initd
+++ b/community/bareos/bareos-dir.initd
@@ -1,11 +1,16 @@
#!/sbin/openrc-run
-name="Bareos Director"
+name="Bareos Director daemon"
+pidfile=/run/bareos/bareos-dir.9101.pid
command=/usr/sbin/bareos-dir
-pidfile=/run/$RC_SVCNAME.pid
+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%/*}"
+}