Description of Problem: The check_default_route() in /etc/sysconfig/network-scripts/network-functions is too slow. It takes the output of 'ip route' and greps it for default route: check_default_route () { LC_ALL=C ip route | grep -q default } Instead it should be: check_default_route () { LC_ALL=C ip route list match 0/0 | grep -q default } By using 'list match' to find a default route, the function runs about 20-50 times faster. This is important on boxes with many hundreds of thousands of bgp routes. find_gateway_dev () can probably be optimized in similar fashion. Version-Release number of selected component (if applicable): How Reproducible: Every time Steps to Reproduce: 1. install <a href="http://www.zebra.org">zebra</a> 2. get a bgp feed of several 100,000's routes 3. ctrl-alt-del to shutdown Actual Results: very slow shutdown Expected Results: should shutdown much faster Additional Information:
I have made this change in the newest initscripts package. Thanks, Florian La Roche
*** Bug 53530 has been marked as a duplicate of this bug. ***