Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have .conf a file in /etc/init/ with this code at the bottom:

start on (started network-interface
          or started network-manager
          or started networking)

stop on (stopping network-interface
         or stopping network-manager
         or stopping networking)

I understand this means that it is launched whenever the system boots. Anyway, is it possible to have a more accurate information about each one of these events? man initctl does not provide a comprehensive list of them and googling is not very successful so far.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

network-interface, network-manager and networking are other Upstart jobs and are defined in /etc/init/network-interface.conf, /etc/init/network-manager.conf and /etc/init/networking.conf.

Have a look at Upstart Intro, Cookbook and Best Practises if you want to learn more about Upstart.

share|improve this answer
    
Quite interesting, thanks @Florian. In my case I cannot find these files in /etc/init/ neither in all /etc/. Anyway, I get the idea that it is whenever the network is available. –  fedorqui Apr 23 '13 at 12:20
    
Which version of Ubuntu are you using? /etc/init/network-manager.conf is in package network-manager, the other two in ifupdown since Ubuntu 10.04. network-interface brings an network interface up or down, network-manager starts or stops NetworkManager, networking brings the network devices in /etc/network/interfaces marked as ´auto` up or down. –  Florian Diesch Apr 23 '13 at 12:35
    
I am using an Amazon server, so I cannot know exactly the release of it (supposing it is Ubuntu). Anyway, the main purpose of my question is solved, so thank you very much. –  fedorqui Apr 23 '13 at 13:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.