/srv/irclogs.ubuntu.com/2011/01/21/#upstart.txt

=== apachelogger is now known as releaselogger
robs_someone can take a look at this bug I submitted  ? https://bugs.launchpad.net/upstart/+bug/70399311:35
ronnyhi12:57
ronnyim a bit at loss, i cant seem to find docs on how to prevent the automated starting of some services12:58
JanCronny: what version of upstart are you using?13:02
JanCronny: in 0.6.7 you can use the "manual" stanza, in older versions you can comment out the "start on" line(s)13:03
ronnyatm 0.6.613:08
dacresnihow can you which running process depend on an upstart job 15:20
dacresnilike what's using mysql now15:20
JanCconsidering that those processes might be running on a computer at the other side of the world, how do you think that would work?15:25
dacresniother side of the world? im just talking about programs that only start after mysql is running 15:28
dacresnithats the point of upstart right? to only launch programs after the programs they depend on are runnning? 15:28
dacresniin the case of mysql if there are are open sockets i guess i should ask the mysql people about that right?15:29
dacresnior am I confusing this with launchd 15:29
jhuntdacresni: it's not that easy currently - you need to look at the "start on" and "stop on" entries for all jobs.15:35
JanCupstart is based on events, not on dependencies15:36
jhuntquite.15:37
JanCmaybe it's possible to document dependencies in job metadata in the future, just like you can document "emits" ?15:38
JanCdacresni: programs/jobs that need mysql might not always have a connection/socket open permanently...15:40
dacresniok, thanks15:41
dacresnithe events vs dependencies tells me that i did confuse it with launchd 15:43
dacresniI forget how systemd does it15:43
JanCyou can implement dependencies using upstart's events, but not the other way around15:44
dacresniwell, thanks all 16:02
=== ion___ is now known as ion
=== releaselogger is now known as apachelogger
kreignhi, I'm trying to understand the mountall.conf file. I need to have it wait for a custom filesystem module, which is getting modprobed via module-init-tools.conf; however, both these conf files appear to have the same prereq of 'start on startup' 22:16
kreignis there any way to make one a prereq of the other? 22:16
kreignfrom looking at the files it looks like I can do an "emits fs_module" and then have mountall.conf with "start on (startup and started fs_module)" - is this correct?22:18
JanC"emits" is documentation22:18
JanCso it does nothing on its own22:19
kreignJanC, ok; how can I specify that basic chain of events?22:20
kreignJanC, start on (startup and started init-module-tools) ?22:21
kreigner module-init-tools22:21
JanCsounds like that might work22:22
kreignJanC, or am I going about this the wrong way?22:22
kreigni'm assuming it's not whitespace sensitive...22:22
JanCI guess the "startup" part can be left out too22:22
kreignhmm probably.22:23
JanCand maybe you can make the modprobe for that specific module its own task, so that mountall can start earlier?22:24
kreignJanC, hmm I don't think mountall will be able to start earlier - module-init-tools is the direct prerequisite. 22:25
JanCalso depends on whether boot time is important  ;)22:25
kreignnot so much.22:25
* kreign misses the old way of doing things, somewhat.22:25
kreignJanC, I'd think that any filesystem modules should be loaded before filesystems try to mount, anyway.22:26
JanCnormally they will be loaded automatically?22:27
kreignJanC, that does not seem to be the case, in this regard.22:28
kreignJanC, the modules aren't strictly "linux compliant" per se22:28
kreign(ok, not going to lie - it's zfs, and I"ve also got to import the zpool in the module-init-tools.conf)22:28
JanCkreign: I think for most filesystems, their mount utility loads the modules, or something like that22:30
JanCI guess 'mount.zfs' (or whatever it's called) doesn't?22:31
kreignJanC, running mountall manually once in does the trick (with 'auto' as an fstab option)22:32
kreignJanC, it just looks like mountall is running prior to zfs module getting loaded (defined in /etc/modules) and not knowing what -t zfs is. :)22:33
kreignso, it dies.22:33
JanCright22:33
JanClike I said, you can use an extra job only to load the ZFS modules and make mountall.conf depend on that task22:35
kreignI don't recall classic init hanging on exception like this... iirc it'd continue despite problems.22:35
JanCclassic init did a lot of things serially22:36
kreignJanC, right - but the zfs modules would need to be loaded beforehand, which are defined in /etc/fstab, so it makes sense to have the module-init-tools.conf do that.22:36
JanCif you don't mind waiting until all those modules are loaded22:36
JanCin most cases not an issue, I think22:37
kreignJanC, yeah. it's on server hardware, so...22:37
kreignslow bios22:37
kreignthat's like 3-4 times as long as boot even though it's booting from sloooooow flash media22:37
JanC22:38
kreignwell let's hope i didn't biff it22:38
JanCmy desktop doesn't boot fast either  ;)22:38
kreigni don't want to walk across the building again22:38
kreign 15:38:28 up 123 days, 23:34,  9 users,  load average: 0.66, 0.57, 0.4922:38
kreign^ not much a problem for me.22:39
kreigntho i should probably do something like that. I've had two new kernels installed since then...22:39
JanCright22:39
JanCI was going to say: I install security updates  :P22:39
kreignJanC, oh I do too.22:39
kreignjust don't usually have the time for a reboot... will probably do that tonight and watch monday be unproductive fixing things.22:40

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