summaryrefslogtreecommitdiff
blob: 528e46bf6bfa6366f5fd3107421a40aa6ded8ca2 (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
#!/sbin/openrc-run
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs

rpc_bin=/usr/sbin/rpc.rquotad

depend() {
	use ypbind net
	need portmap
	after quota
}

start() {
	ebegin "Starting rpc.rquotad"
	${rpc_bin} ${OPTS_RPC_RQUOTAD}
	eend $?
}

stop() {
	ebegin "Stopping rpc.rquotad"
	start-stop-daemon --stop --quiet --exec ${rpc_bin}
	eend $?
}