Start and stop parameters in init script
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.
1 Answer
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.
3