summaryrefslogtreecommitdiff
path: root/pcr/openrc-net/rpc.rquotad.initd
blob: f657fc469271aabc81bc6688474054678934cbae (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/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/quota/files/rpc.rquotad.initd,v 1.1 2007/03/25 12:09:39 vapier Exp $

[ -e /etc/conf.d/nfs ] && source /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 $?
}