diff options
Diffstat (limited to 'community/bareos/bareos-sd.initd')
-rw-r--r-- | community/bareos/bareos-sd.initd | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/community/bareos/bareos-sd.initd b/community/bareos/bareos-sd.initd index cc8331b05e..abbf951cdd 100644 --- a/community/bareos/bareos-sd.initd +++ b/community/bareos/bareos-sd.initd @@ -1,10 +1,15 @@ #!/sbin/openrc-run -name="Bareos Storage" +name="Bareos Storage daemon" +pidfile=/run/bareos/bareos-sd.9103.pid command=/usr/sbin/bareos-sd -pidfile=/run/$RC_SVCNAME.pid +command_args="-u bareos -g bareos" depend() { need net use dns } + +start_pre() { + checkpath -dm750 -o bareos "${pidfile%/*}" +} |