From bc7ad75d991c2d9b367d5f432c43a456a7faa8db Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 8 Jan 2016 13:55:50 +0100 Subject: contrib/rpm: install pre-up dispatcher script "10-ifcfg-rh-routes.sh" as no-wait The main reason to introduce the "no-wait.d" dispatcher directory was "10-ifcfg-rh-routes.sh", which (as a pre-up script) delays activation. We even extracted the script to a separate package on RHEL to avoid delays by default. Invoke the script via no-wait.d. --- examples/dispatcher/10-ifcfg-rh-routes.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/dispatcher/10-ifcfg-rh-routes.sh b/examples/dispatcher/10-ifcfg-rh-routes.sh index 75b8c5e5e9..59e44db517 100755 --- a/examples/dispatcher/10-ifcfg-rh-routes.sh +++ b/examples/dispatcher/10-ifcfg-rh-routes.sh @@ -8,6 +8,9 @@ # This should be installed in both dispatcher.d/ and # dispatcher.d/pre-up.d/ +# pre-up scripts delay activation of the device. To reduce the delay, +# it is adviced to install the script as symlink to no-wait.d directory. + if [ "$2" != "pre-up" -a "$2" != "down" ]; then exit 0 fi -- cgit v1.2.1