blob: 0bb566582f4cc38a2595a25c9a47b70aec1464fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/openrc-run
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
depend() {
use dns bareos-fd bareos-sd
}
start_pre() {
checkpath --directory --owner root:bareos --mode 01775 /run/bareos
}
start_post() {
ewaitfile 10 /run/bareos/bareos-dir.9101.pid
checkpath --file --owner root:bareos /run/bareos/bareos-dir.9101.pid
}
command="/usr/sbin/bareos-dir"
command_args="${DIR_OPTIONS}"
pidfile="/run/bareos/bareos-dir.9101.pid"
|