summaryrefslogtreecommitdiffstats
path: root/extra/portmap/portmap.initd
diff options
context:
space:
mode:
Diffstat (limited to 'extra/portmap/portmap.initd')
-rw-r--r--extra/portmap/portmap.initd46
1 files changed, 0 insertions, 46 deletions
diff --git a/extra/portmap/portmap.initd b/extra/portmap/portmap.initd
deleted file mode 100644
index 65d23d748..000000000
--- a/extra/portmap/portmap.initd
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/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/portmap/files/portmap.rc6,v 1.12 2007/06/13 07:52:44 vapier Exp $
-
-depend() {
- use net
- before inetd
- before xinetd
-}
-
-start() {
- ebegin "Starting portmap"
- start-stop-daemon --start --quiet --exec /sbin/portmap -- ${PORTMAP_OPTS}
- local ret=$?
- eend ${ret}
- # without, if a service depending on portmap is started too fast,
- # connecting to portmap will fail -- azarah
- sleep 1
- return ${ret}
-}
-
-stop() {
- ebegin "Stopping portmap"
- start-stop-daemon --stop --quiet --exec /sbin/portmap
- eend $?
-}
-
-restart() {
- # Dump the portmapper's table before stopping
- ebegin "Saving portmap table"
- local pmap=$(pmap_dump)
- eend $?
-
- # Stop and restart portmapper
- svc_stop
- sleep 1
- svc_start
-
- # Reload the portmapper's table
- if [ -n "${pmap}" ] ; then
- ebegin "Reloading portmap table"
- echo "${pmap}" | pmap_set
- eend $?
- fi
-}