[Bug 1099420] [NEW] "starting" hook doesn't work as expected

Launchpad Bug Tracker 1099420 at bugs.launchpad.net
Mon Jan 14 14:17:58 UTC 2013


You have been subscribed to a public bug:

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.

** Affects: upstart (Ubuntu)
     Importance: Undecided
         Status: New

-- 
"starting" hook doesn't work as expected
https://bugs.launchpad.net/bugs/1099420
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to upstart in Ubuntu.




More information about the foundations-bugs mailing list