=== notting_ is now known as notting | ||
SteveG | In an /etc/init/*.conf file can you specify to upstart to "start on driver load"? | 06:15 |
---|---|---|
SteveG | I am having an issue where the template says "start on (local-filesystems and net-device-up IFACE=lo)" but the application this spawns still needs a driver to have been loaded or it will not see the hardware. | 06:16 |
=== pocek_ is now known as pocek | ||
=== evand1 is now known as evand | ||
SteveG | What is the best resource for learning about writing "start on" and "stop on" statements? I want to start a service after a driver loads. | 15:47 |
Keybuk | start with "man upstart" ? | 16:04 |
=== SteveG is now known as jhsdhjsda | ||
Keybuk | robbiew: your charts look normal? | 17:23 |
Keybuk | robbiew: it's a hard drive, not an SSD right? | 17:23 |
robbiew | right | 17:23 |
Keybuk | right | 17:24 |
Keybuk | so your chart is normal | 17:24 |
Keybuk | it isn't profiling, it's reading | 17:24 |
robbiew | hmm | 17:24 |
Keybuk | what were the charts like before? | 17:24 |
robbiew | let me send | 17:24 |
Keybuk | so it's 20s better now? :p | 17:28 |
Keybuk | if not more | 17:28 |
Keybuk | on hard drives, because there's such a penalty for seek, ureadahead remains in the foreground | 17:30 |
Keybuk | that way it can basically read the entire page cache in one scan across the disk | 17:30 |
Keybuk | which is why you're getting 113 MB/s out of it | 17:30 |
rpolak | Hello | 19:43 |
rpolak | I'm trying to figure out how upstart is initing ntp in Ubuntu 9.10 | 19:43 |
mbiebl | rpolak: the ntpd daemon? | 20:15 |
rpolak | Yeah, I can't find where in the world it's initing from | 20:15 |
mbiebl | I think it's started by a sysv init script | 20:15 |
rpolak | I've been chasing this new fricking upstart down a rabbit hole | 20:15 |
rpolak | How are the sysv scipts being called by upstart | 20:16 |
mbiebl | rpolak: there is an upstart job called /etc/init/rc.conf | 20:17 |
mbiebl | which read the default runlevel from /etc/inittab, and then runs "/etc/init/rc $runlevel" | 20:17 |
mbiebl | which in turn runs the legacy sysv init scripts | 20:17 |
rpolak | A ha | 20:18 |
rpolak | however I don't have a symlnk in any of the /etc/rc*.d dirs | 20:19 |
mbiebl | rpolak: sorry, I meant /etc/init.d/rc (note the .d) | 20:19 |
mbiebl | and there is no /etc/rc*.d/ in Debian/Ubuntu | 20:19 |
rpolak | ls -lah | 20:20 |
rpolak | ./rc2.d/K20ntp | 20:20 |
rpolak | that got it to stop | 20:20 |
mbiebl | argh, I'm talking rubbish atm. of course there is /etc/rc?.d/, there is no /etc/rc.d/ | 20:21 |
mbiebl | rpolak: seems you have disable ntp for runlevel 2 | 20:21 |
mbiebl | rename that to S20ntp | 20:21 |
rpolak | I knew my eyes weren't decieving me | 20:22 |
mbiebl | and you are fine | 20:22 |
rpolak | I wanted it to stop loading | 20:22 |
rpolak | I'm having trouble with the time skew being to large to be corrected by the deamon while running Ubuntu under VirtualBox | 20:22 |
mbiebl | so, if you already found how to disable ntp, what is your question again? | 20:23 |
rpolak | I just figured it out while I was talking with you | 20:24 |
rpolak | However, if you could explain how it was initing without a S* in /etc/rc2.d I would appreciate it | 20:25 |
mbiebl | It will no longer be started by default if you boot into runlevel 2 | 20:25 |
rpolak | I am at this point interested in understanding the behavior of upstart in that normally with init it would start only processes with a /etc/rc?.d/S?deamon symlink | 20:28 |
mbiebl | that is not quite correct | 20:30 |
mbiebl | old sysvinit starts the processes listed in /etc/inittab | 20:30 |
mbiebl | And it's the task of sysv-rc (providing /etc/init.d/rc) to start the services in /etc/rc?.d/ | 20:31 |
rpolak | Ok, So by what mechanism was ntpd starting with upstart on this Ubuntu 9.10 machine | 20:36 |
ion | ntp isn’t handled by Upstart in 9.10. | 20:37 |
mbiebl | rpolak: as I told you | 20:41 |
mbiebl | it's still a sysv init script | 20:41 |
rpolak | a better question than would be where in upstart is the runlevel for the legacy rc set | 20:43 |
mbiebl | rpolak: check /etc/init/rc-sysinit.conf | 20:43 |
rpolak | I see | 20:43 |
rpolak | Thank you for shedding some light on this for me | 20:44 |
mbiebl | np | 20:51 |
Keybuk | (man runlevel would have answered the question too :p) | 21:27 |
=== robbiew is now known as robbiew-afk | ||
=== Toad__ is now known as SteveG |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!