summaryrefslogtreecommitdiff
path: root/nonsystemd/rpcbind-openrc/rpcbind.initd
blob: 5c7b0ac576c48c6a5addf62cf9980c93ae72b586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/openrc-run
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
	use net
	before inetd xinetd
	provide portmap
}

start() {
	ebegin "Starting rpcbind"
	start-stop-daemon --start --quiet --exec /usr/bin/rpcbind -- ${RPCBIND_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping rpcbind"
	start-stop-daemon --stop --quiet --exec /usr/bin/rpcbind
	eend $?
}