projects/aports·blob master · refs

21 lines · 506 B

1#!/sbin/openrc-run
2# Copyright 1999-2022 Gentoo Authors
3# Distributed under the terms of the GNU General Public License v2
4
5depend() {
6 use dns
7}
8
9start() {
10 ebegin "Starting bareos file daemon"
11 checkpath -d -m 0750 -o root:bareos /run/bareos
12 start-stop-daemon --start --quiet --exec /usr/sbin/bareos-fd \
13 -- -p /run/bareos/bareos-fd.9102.pid ${FD_OPTIONS}
14 eend $?
15}
16
17stop() {
18 ebegin "Stopping bareos file daemon"
19 start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-fd.9102.pid
20 eend $?
21}