diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2001-12-29 00:22:51 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2001-12-29 00:22:51 +0000 |
commit | 64733a93aa83f4708fd86a2ba6244aec4083e11c (patch) | |
tree | 80eda3dc57d91a4e87f8afbf81d5a9364cd4e5d9 /net-nds/portmap/files | |
parent | new version (diff) | |
download | gentoo-2-64733a93aa83f4708fd86a2ba6244aec4083e11c.tar.gz gentoo-2-64733a93aa83f4708fd86a2ba6244aec4083e11c.tar.bz2 gentoo-2-64733a93aa83f4708fd86a2ba6244aec4083e11c.zip |
fixor
Diffstat (limited to 'net-nds/portmap/files')
-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 |