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
512 B
22 lines
512 B
#!/sbin/openrc-run
|
|
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
depend() {
|
|
use dns
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting bareos storage daemon"
|
|
checkpath -d -m 0750 -o root:bareos /run/bareos
|
|
start-stop-daemon --start --quiet --exec /usr/sbin/bareos-sd \
|
|
-- -p /run/bareos/bareos-sd.9103.pid ${SD_OPTIONS}
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping bareos storage daemon"
|
|
start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-sd.9103.pid
|
|
eend $?
|
|
}
|