diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-08-27 18:06:08 +0300 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-08-28 06:46:19 +0000 |
commit | c6464a23fcc6deb83d8e120b026c26ae49c2dffb (patch) | |
tree | fe62b3ca8a9916547fc078b75a7f1b30f18b33f1 /community/bareos/bareos-sd.initd | |
parent | b32c9583cb6819cf1d07a6ae5b232b7bf35203d5 (diff) | |
download | aports-c6464a23fcc6deb83d8e120b026c26ae49c2dffb.tar.bz2 aports-c6464a23fcc6deb83d8e120b026c26ae49c2dffb.tar.xz |
community/bareos: fix APKBUILD and init-scripts
- remove unneeded scripts
- fix permissions for config-dirs, scripts and binaries
- fix init-scripts to run with non-root user
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%/*}" +} |