diff options
-rw-r--r-- | net-nds/portmap/files/portmap.rc6 | 12 |
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 |