2

In one of the script i have seen the ifdown command with timeout

timeout 20 ifdown eth0 --force

for what purpose the timeout may be useful?

  • 2
    Read man timeout – waltinator May 4 '17 at 6:55
1

In case there is an ifup active it would interfere with the ifdown command. Waiting 20 seconds would avoid this (ifup is likely to finish or error out without 20 seconds).

As an example: OpenVSwitch uses it.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.