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

depend() {
    need root-file-server
    use logger
}

start() {
    ebegin "Starting parallel ROOT facility server"
    start-stop-daemon --start --quiet \
	--pidfile /var/run/proofd.pid \
	--exec /usr/bin/proofd -- ${PROOFD_OPTS} ${PROOF_DIR}
    pidof /usr/bin/proofd > /var/run/proofd.pid
    eend $?
}

stop() {
    ebegin "Stopping parallel ROOT facility server"
    start-stop-daemon --stop --quiet \
	--pidfile /var/run/proofd.pid \
	--exec /usr/bin/proofd
    eend $?
}