/srv/irclogs.ubuntu.com/2014/11/03/#upstart.txt

=== lazyWeekend is now known as lazyPower
crystal77How does the OS know to use an upstart script? isn't it true that calling service apparmor ____ is the same as calling /etc/init.d/apparmor ____? That's where the script lives, so it's the same thing...17:17
jodh_crystal77: service(8) is a sysv facility - upstart uses start/stop/restart (see initctl(8)), but on upstart systems, service(8) is "upstart-aware" and will dtrt if you try to use it to control an upstart job.17:20
crystal77Lot of acronyms there, haha17:20
jodh_crystal77: your question is basically about how sysv services are handled and yes you can use either the /etc/init.d/$service script or the service(8) command. Upstart jobs live in /etc/init/, not /etc/init.d/.17:23
crystal77right, but what if you have both? which will it use?17:24
crystal77that's where the confusion comes from.17:24
jodh_crystal77: upstart jobs take priority.17:27
jodh_crystal77: note that this behaviour is documented in service(8).17:29
crystal77What does "dtrt" mean?17:29
crystal77and sysv = system 5?17:29
jodh_crystal77: do the right thing.17:30
jodh_crystal77: yes17:30
crystal77OH17:30
crystal77now it makes more sense...17:30

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!