summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2001-12-29 00:22:51 +0000
committerMartin Schlemmer <azarah@gentoo.org>2001-12-29 00:22:51 +0000
commitc23ad1d0c1537eacc76ae6cab23cd21ea94283d3 (patch)
tree4871ed642da6cb77b6d888b316d4b0ab54251bd7 /net-nds/portmap
parentnew version (diff)
downloadhistorical-c23ad1d0c1537eacc76ae6cab23cd21ea94283d3.tar.gz
historical-c23ad1d0c1537eacc76ae6cab23cd21ea94283d3.tar.bz2
historical-c23ad1d0c1537eacc76ae6cab23cd21ea94283d3.zip
fixor
Diffstat (limited to 'net-nds/portmap')
-rw-r--r--net-nds/portmap/files/portmap.rc612
1 files changed, 7 insertions, 5 deletions
diff --git a/net-nds/portmap/files/portmap.rc6 b/net-nds/portmap/files/portmap.rc6
index 7b667a6c546a..5f66fca876e2 100644
--- a/net-nds/portmap/files/portmap.rc6
+++ b/net-nds/portmap/files/portmap.rc6
@@ -1,9 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/files/portmap.rc6,v 1.2 2001/12/06 20:17:02 azarah Exp $
-
-opts="start stop restart"
+# $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/files/portmap.rc6,v 1.3 2001/12/29 00:22:51 azarah Exp $
depend() {
need net
@@ -13,6 +11,9 @@ start() {
ebegin "Starting portmap"
start-stop-daemon --start --quiet --exec /sbin/portmap
eend $?
+ #without, if a service depending on portmap is started too fast,
+ #connecting to portmap will fail -- azarah
+ sleep 1
}
stop() {
@@ -29,8 +30,9 @@ restart() {
eend $? "Error saving portmap table."
# Stop and restart portmapper
- stop
- start
+ svc_stop
+ sleep 1
+ svc_start
# Reload the portmapper's table
if [ -n "$tmpfile" ]; then