summaryrefslogtreecommitdiff
path: root/pcr/openrc-net/rpcbind.initd
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/openrc-net/rpcbind.initd')
-rw-r--r--pcr/openrc-net/rpcbind.initd22
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/openrc-net/rpcbind.initd b/pcr/openrc-net/rpcbind.initd
new file mode 100644
index 000000000..995ca71d0
--- /dev/null
+++ b/pcr/openrc-net/rpcbind.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# 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
+ 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 $?
+}