summaryrefslogtreecommitdiff
path: root/user/rpcbind/rpcbind.initd
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-09-29 21:48:33 -0700
committerDan Theisen <djt@hxx.in>2018-09-30 15:00:55 -0700
commit2031d871d51fce1698448e13340a3c2cfac972ed (patch)
tree98171796094f463b31b61cf35b80033898e14be3 /user/rpcbind/rpcbind.initd
parente668f57c242e3b2480944703f0d27ac89438019e (diff)
downloadpackages-2031d871d51fce1698448e13340a3c2cfac972ed.tar.gz
packages-2031d871d51fce1698448e13340a3c2cfac972ed.tar.bz2
packages-2031d871d51fce1698448e13340a3c2cfac972ed.tar.xz
packages-2031d871d51fce1698448e13340a3c2cfac972ed.zip
user/rpcbind: new package
Diffstat (limited to 'user/rpcbind/rpcbind.initd')
-rw-r--r--user/rpcbind/rpcbind.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/user/rpcbind/rpcbind.initd b/user/rpcbind/rpcbind.initd
new file mode 100644
index 000000000..b979c2226
--- /dev/null
+++ b/user/rpcbind/rpcbind.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nds/rpcbind/files/rpcbind.initd,v 1.1 2007/12/29 09:13:55 vapier Exp $
+
+depend() {
+ use net
+ before inetd xinetd
+ after firewall
+ provide portmap
+}
+
+start() {
+ ebegin "Starting rpcbind"
+ start-stop-daemon --start --quiet --exec /sbin/rpcbind \
+ -- ${RPCBIND_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping rpcbind"
+ start-stop-daemon --stop --quiet --exec /sbin/rpcbind
+ eend $?
+}
+