Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Woody Gilk (Shadowhand)
Tuesday, 10 October 2006, 05:07 GMT
Reason for closing:  Fixed

Loading...