summaryrefslogtreecommitdiff
blob: 013ef3453513bd0a4cff881275fab3ba4dd14756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

depend() {
	use dns
}

start() {
	ebegin "Starting bareos file daemon"
	checkpath -d -m 0750 /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 $?
}