aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rpcbind/rpcbind.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-07-01 11:27:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-07-01 11:27:11 +0000
commit445ca2557114b18482ed1f9b63521e6be7dc073a (patch)
treeea2d443b9782a6e09ca858c00b5c409211d18087 /testing/rpcbind/rpcbind.initd
parent9231365da35bfe61172dcea6eb416866f12712bd (diff)
downloadaports-445ca2557114b18482ed1f9b63521e6be7dc073a.tar.gz
aports-445ca2557114b18482ed1f9b63521e6be7dc073a.tar.bz2
aports-445ca2557114b18482ed1f9b63521e6be7dc073a.tar.xz
testing/rpcbind: new aport
portmap replacement which supports RPC over various protocols http://rpcbind.sourceforge.net
Diffstat (limited to 'testing/rpcbind/rpcbind.initd')
-rw-r--r--testing/rpcbind/rpcbind.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/rpcbind/rpcbind.initd b/testing/rpcbind/rpcbind.initd
new file mode 100644
index 0000000000..897e8e5a88
--- /dev/null
+++ b/testing/rpcbind/rpcbind.initd
@@ -0,0 +1,25 @@
+#!/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
+ 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 $?
+}
+