/srv/irclogs.ubuntu.com/2011/12/02/#upstart.txt

litheumis there a recommended method to completely disable a rule, persistent-net-generator under ubuntu in this case?01:51
litheumman, i am so far behind the times on this stuff, dang02:54
=== jodh is now known as jodh_
JanClitheum: that sounds like an udev question, not an upstart one  ☺12:02
JanCand how to override system-supplied udev rules is explained in /etc/udev/rules.d/README12:02
litheumJanC: yeah i wasn't sure if it was a udev question or upstart, but i do want to disable the upstart rule that is calling udev and i don't want to do anything to udev, so...16:21
litheumi guess i didn't understand well enough how things work to want to copy the file and edit it16:23
litheumif i don't want it to run at all, is that really the right approach?16:24
JanCI guess creating an empty udev rule with the same name in /etc/udev/rules.d/ would work16:43
litheumyeah this does sound more like a udev question, doesn't it :)16:44
litheumhow about a different question that might be related to upstart!16:44
litheumi edited /etc/init/hostname.conf so that it sets the hostname based on the name of the VM it is running inside of16:45
litheumbut i need /etc/init.d/vboxadd to be executed first... is there a way to make the upstart job depend on an old-school init script?16:45
JanCedit the SysV init script to emit an event, then depend on that event?16:47
litheumyeah, that's what i ended up doing16:47
litheumthat seems really scary though if that script is just going to get overwritten if i install a new version of those tools at some point16:48
JanCand vbox has no hooks for this?16:48
litheumhooks for what, running scripts after the module is loaded?16:50
JanCyes?16:50
litheumi have no idea if it does that or not, but tearing the hostname out of upstart and tying it to some vbox hooks didn't really even enter my mind16:50
JanCI mean, emitting an event from such a hook16:50
litheumoh, right16:51
litheumwell, i don't know about that. good suggestions16:51
jMCghmmm... now that there are actually people here, maybe I should reepeat my question..17:55
jMCg15:48:53 < jMCg> I'm looking for a better way to handle this: http://sprunge.us/IAiV17:55
jMCg15:49:10 < jMCg> Because the results are just plain horrible (IMO): http://sprunge.us/WSdc17:56
JanCjMCg: why are they horrible?  (not sure what you are trying to do)18:01
jMCgJanC: the point is that I need the logger only during the startup, but it stays up and running for the whole runtime. I find that... wrong.18:02
JanCeh18:02
jMCgJanC: the problem is that expect daemon doesn't work.18:02
JanCso logger works as intended, right?  ☺18:04
jMCgJanC: what doesn't work as expected is upstarts fork tracing :-S18:04
jMCgCan it please just work automagickally?18:04
jMCgI mean.. how does SMF do this?18:05
JanCAFAIK that's a feature that's in the works18:05
jMCgI don't remember SMF ever once caring a. Oh. Right.18:05
jMCgContracts.18:05
jMCghttp://www.freebsd.org/cgi/man.cgi?query=contract&sektion=4&apropos=0&manpath=SunOS+5.1018:07
jMCgThat's a property all Solaris processes have which doesn't exist on Linux.18:08
JanCjMCg: how would that fix the logger issue?18:14
JanCalso, can't you use start-stop-daemon for example?18:14
JanCalso, you can probably do some logging in pre-/post- scripts18:16
jMCgJanC: the logging is only needed for startup -- and only in case of failure.18:16
JanCwhat does it need to log?18:16
jMCgJanC: the reason why it's failing to start, for instance.18:17
jMCgThat kind of stuff is *reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeaaally* useful for debugging.18:17
JanChow did you do that with SysV init?18:17
jMCgJanC: I haven't used SysV init since there's upstart, and I haven't used this setup before.18:18
broderjMCg: it sounds like you're looking for https://code.launchpad.net/~jamesodhunt/upstart/job-logging18:19
JanCbroder: I doubt that will stop logging after startup?18:19
broderso?18:19
JanCthat's what he wants, if I understand correctly?18:20
JanCto log startup failures, but not whatever else the application spews after that?18:20
broderit's still possible to get that information out of full job logging, though18:21
broderonce job logging gets merged in, i could imagine extending it to "log everything until the job transitions to a running state"18:21
broderpretty easily, even18:21
jMCgbroder: what I want is to be able to start httpd without -D NO_DETACH without upstart losing track of it.18:23
jMCgOh.18:23
JanChe already gets that with logger now, although upstart job-logging would make it easier18:23
jMCgexpect daemon expects two forks, my fancy pants setup has 3.18:23
JanCjMCg: there is some work being done about that, but in the mean time your job should work just fine?18:27
jMCgJanC: yup.18:28
JanCI mean, the thing you complained about has nothing to do with that  ;)18:28
JanCcomplained about first18:28
jMCgJanC: I'm not using expect daemon. I tried doing that, but it wouldn't work. Only now did I grasp why.18:29
JanCah, yes, THAT is a known problem18:31
JanCIIRC there are several solutions for that planned  ☺18:31
* jMCg strongly suggests implementing contracts in Linux.18:37
JanCjMCg: have any good link about that?  ☺18:44
jMCgJanC: aside from the docs I linked above, there's the OpenSolaris.. well.. OpenIndianna source code.18:45

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