FS#5338 - /etc/rc.d/network restart reads configuration files 3 times
Attached to Project:
Arch Linux
Opened by Arthur Danskin (wiremore) - Saturday, 02 September 2006, 08:40 GMT
Opened by Arthur Danskin (wiremore) - Saturday, 02 September 2006, 08:40 GMT
|
Details
Running /etc/rc.d/network restart reads configuration files
3 times. This is not normally an issue, but is inefficent
when the configuration files include some logic above simple
variable definitions.
An easy way to fix this is to move the code to start and stop the network out of the switch statement and into individual functions, and then change this: restart) $0 stop /bin/sleep 2 $0 start so that it calls those functions instead of calling the entire script. |
This task depends upon