blob: 5e508f9fce43788d755d9383e3ed5a689f0bdd65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
use dns bareos-fd bareos-sd
}
start() {
ebegin "Starting bareos director"
checkpath -d -m 0750 -o bareos:bareos /run/bareos
start-stop-daemon --start --quiet --exec /usr/sbin/bareos-dir \
-- ${DIR_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping bareos director"
start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-dir.*.pid
eend $?
}
|