http://qa.mandrakesoft.com/show_bug.cgi?id=4137

           Product: initscripts
         Component: initscripts
           Summary: failure message on success of ifplugd command
           Product: initscripts
           Version: 7.06-9mdk
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: initscripts
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


There may be a bug in /etc/init.d/network, lines 144-145 :
                    IFPLUGD_ARGS="${IFPLUGD_ARGS=-w -b}"
                    action "Bringing up interface %s: " $i /sbin/ifplugd IFPLUGD_ARGS 
-i $DEVICE

ifplugd is called with -w option, which makes it return 1 on success.

>From the man :
       -w | --wait-on-fork

               When  daemonizing,  wait  until the background process finished
              with the initial link beat detection. When this is enabled,  the
              parent process will return the link status on exit. 1 means link
              beat detected, 2 stands for link beat not  detected,  everything
              else is an error.

So on success, the result of initlog -c "/sbin/ifplugd IFPLUGD_ARGS -i $DEVICE"
is 1, and a failure message is diplsayed.

I haven't found any proper way to make initlog return 0 on success of ifplugd
with -w option.

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply via email to