You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
472 B
22 lines
472 B
#!/sbin/openrc-run
|
|
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
depend() {
|
|
use dns
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting bareos file daemon"
|
|
checkpath -d -m 0750 -o root:bareos /run/bareos
|
|
start-stop-daemon --start --quiet --exec /usr/sbin/bareos-fd \
|
|
-- ${FD_OPTIONS}
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping bareos file daemon"
|
|
start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-fd.*.pid
|
|
eend $?
|
|
}
|