[Bug 1126560] Re: /etc/networking/* are executed multiple times
Sworddragon
1126560 at bugs.launchpad.net
Sun Feb 17 21:13:37 UTC 2013
> Interfaces are brought up as they show up from the kernel, so they can
indeed be brought up in parallel.
I have tested this and it seems to be false (assuming there is a bug on
booting). I have written a script which helps me debugging this problem
and placed it in /etc/network/if-pre-up.d/ and /etc/network/if-up.d/.
The script delays itself to 5 seconds and logs at which PID it is
currently running. So it is possible to say in which order ifupdown has
called the scripts and if they are running sequentially or parallel.
network_reboot.log contains the information what happens after a system reboot. In this log if-pre-up.d and if-up.d were called parallelized 3 times.
network_restart contains the information what happens after calling /etc/init.d/networking restart. In this log if-pre-up.d and if-up.d were called sequentially 2 times.
Because I'm having only 2 network devices I'm assuming the second
variant is the correct one. It would be a little easier to know for
which network device the scripts were running. But I have already opened
a feature request for this
(https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1128403).
** Attachment added: "Debugging script"
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1126560/+attachment/3533748/+files/debug
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/1126560
Title:
/etc/networking/* are executed multiple times
Status in “ifupdown” package in Ubuntu:
New
Bug description:
I'm using Ubuntu 13.04 dev with ifupdown 0.7.5ubuntu2. I have noticed
that on booting my system in /etc/networking the scripts in if-pre-
up.d and if-up.d are executed multiple times. On my observations I
have noticed that they can even be executed parallelized. I have
logged what happened on a boot:
1. The content of /etc/networking/if-pre-up.d is executed parallelized 2 times.
2. After they have finished the content of /etc/networking/if-up.d is excuted.
3. Then the content of /etc/networking/if-pre-up.d is excuted again.
4. At last the content of /etc/networking/if-up.d is executed again too.
As a summary: The content of /etc/networking/if-pre-up.d was executed
3times and /etc/networking/if-up.d 2 times.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1126560/+subscriptions
More information about the foundations-bugs
mailing list