[Bug 1099420] Re: "starting" hook doesn't work as expected
DmitryKX
1099420 at bugs.launchpad.net
Mon Jan 14 14:19:27 UTC 2013
Using Ubuntu 12.10, upstart 1.5-0ubuntu9
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1099420
Title:
"starting" hook doesn't work as expected
Status in “upstart” package in Ubuntu:
New
Bug description:
I need to run an important shell script before the network is
configured. I created the following test job "before-net.conf":
description "Hook tester to start before network-interface"
start on starting network-interface
script
set -x
exec > /dev/.initramfs/before-net.log 2>&1
# long operation
date +%H:%M:%S.%N
sleep 10
date +%H:%M:%S.%N
end script
I also modified network-interface.conf to also write a log to
/dev/.initramfs/network-interface-$INTERFACE.log. According to
documentation, before-net.conf will be executed synchronously before
network-interface. But it doesn't.
Logged time:
13:50:11.450185264: before-net.conf is starting
13:50:11.522017582: "lo" is to be configured
13:50:11.530957266: "eth0" is to be configured
13:50:11.532905558: "eth1" is to be configured
13:50:21.506887517: before-net.conf has finished
I can conclude that "network-interface" doesn't execute "before-net"
synchronously.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1099420/+subscriptions
More information about the foundations-bugs
mailing list