=== lazyWeekend is now known as lazyPower | ||
crystal77 | How 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 |
crystal77 | Lot of acronyms there, haha | 17: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 |
crystal77 | right, but what if you have both? which will it use? | 17:24 |
crystal77 | that'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 |
crystal77 | What does "dtrt" mean? | 17:29 |
crystal77 | and sysv = system 5? | 17:29 |
jodh_ | crystal77: do the right thing. | 17:30 |
jodh_ | crystal77: yes | 17:30 |
crystal77 | OH | 17:30 |
crystal77 | now it makes more sense... | 17:30 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!