Package: portmap
Version: 6.0-5
Severity: important

I noticed a 1 second useless sleep in the portmap init.d script.  I
suggest it is moved to only happen when pmap_set is invoked, to avoid
a useless 1 second pause during boot.  This is important for booting
for example laptops.  Here is a draft patch:

diff -u portmap-6.0/debian/init.d portmap-6.0/debian/init.d
--- portmap-6.0/debian/init.d
+++ portmap-6.0/debian/init.d
@@ -39,19 +39,20 @@
        start-stop-daemon --start --quiet --oknodo --exec /sbin/portmap -- 
$OPTIONS
        log_end_msg $?

-       sleep 1 # needs a short pause or pmap_set won't work. :(
        if [ -f /var/run/portmap.upgrade-state ]; then
          log_begin_msg "Restoring old RPC service information..."
+         sleep 1 # needs a short pause or pmap_set won't work. :(
          pmap_set </var/run/portmap.upgrade-state
          log_end_msg $?
          rm -f /var/run/portmap.upgrade-state
        else
          if [ -f /var/run/portmap.state ]; then
+           sleep 1 # needs a short pause or pmap_set won't work. :(
            pmap_set </var/run/portmap.state
            rm -f /var/run/portmap.state
          fi
        fi



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to