/srv/irclogs.ubuntu.com/2008/12/05/#upstart.txt

plundraHey, would you look at that.10:29
plundraOk, got a quick question for you; I can't find any built in way of doing it, so, are you supposed to change directory and user in the pre-start script, or in the actual start-script?10:30
mbieblplundra: what do you want to do?10:33
plundraLaunch an application from a certain directory and with another user.10:33
plundraSo (cd /path ; sudo -u foo ./crap) or whatever :)10:34
plundraMaybe using su instead.10:34
mbiebldo it within a script .. end script10:39
mbiebland run su via exec10:40
plundraOk, so pre-start script, right?10:40
mbieblno script ... end script10:40
plundraOk, but why not start it within the script too?10:40
mbieblhttp://pastebin.ca/127676310:41
plundraAh10:42
plundraCool, seem to work just fine, respawn and everything :)10:44
mbiebldo you want to monitor the application?10:44
mbieblah, you seem to have figured that out already10:45
plundraYeah.10:45
plundra(But I do think a man-page would be a good thing... :-P Not just for initctl/start/stop/whatnot)10:45
mbieblplundra: there is a wiki10:46
plundraThat really bugs me, more often then not, random linux-projects are awesome, but the lack of documentation makes it unusable.10:46
mbieblso if you want to contribute10:46
mbieblthat is a great start10:46
plundraWikis are for faqs and examples, you shouldn't have to use them for basic configuration-syntax etc. :)10:47
plundraBut that's just me, and I'm to lazy to contribute right now so I'll stop complaining :-D Just wanted to say it.10:47
plundraAlso, lunch! And thanks for your help.10:48
mbieblplundra: yeah, the man pages could definitely be improved10:48
mbieblbut take a look at the home page http://upstart.ubuntu.com/10:48
mbieblespecially scotts blog posts (linked on the front page) and the wiki10:48
plundraAfter respawning too fast, will it try again later or do I manually have to start it again?11:52
plundraDoesn't seem like it :-) So, is it possible to have a script runt WHEN it's stopped completly due to respawning too fast?11:55
plundraFor informing/whatever that it's the case.11:56
plundraI know a respawn will emit a start/stop, and nothing special, but is there something that is emitted on respawning too fast?11:56
mbieblplundra: not sure, you can check with "initctl events" what events get emitted by upstart11:57
plundraAh, great :-) "stopped xxxx failed respawn"11:59
plundraHmm, can't get my "on xxxx/failed" (with and without respawn afterwards) to work.12:09
plundraAh!12:46
plundra"on stopped xxxx failed" did the trick :)12:47
plundraAll though, I'd rather have that kind of stuff inside the xxxx-file it self.12:48
plundraBut on the other hand, now I can create a generic script I guess. That's probably better \o/ I bet you can get 'xxxx' as a parameter or variable somewhere 8-) *searches the wiki*12:49
plundraMaybe not. I think I'm getting a UPSTART_EVENT=stopped, and nothing else. 12:57
johnfluxHey all17:57
johnfluxHow's upstart coming along?17:57
johnfluxon your webpage, I've noticed that dbus communication is now working?17:58
johnfluxDoes this mean that I can find out, as a normal user, what services are running?17:58
mbiebljohnflux: yes18:25
mbieblneeds some tweaking, though18:26
TvSo... I'd like to migrate from runit to upstart, but I'd like to retain the benefits of easy logging of stdout/stderr.. is there anything nice in upstart for that?20:28
Tvi mean, i can make my logging library use syslog, but 1) syslog sucks 2) i'd like to separate the logs from different daemons better 3) i want to capture stdout/stderr to see bugs etc20:29
sadmacTv: do the syslog migration and use a better system logger :)20:31
sadmacTv: rsyslog seems pretty powerful20:31
Tvsadmac: doesn't fix the "something writes to stderr" part of the equation20:31
sadmacTv: the problem we've had with that is that if whatever application which is reading/marshalling the stdout/stderr data gets killed, it takes all the applications it was watching with it (massive SIGPIPE)20:32
Tvsadmac: yeah that's why daemontools/runit puts a more reliable process in between20:33
sadmacTv: its not reliability per se. It could be a deliberate kill, such as during shutdown.20:34
Tvrestarting the logger part is perfectly normal for the runsv/svlogd combo20:34
sadmacyes, but that's a different kind of connection20:35
Tvwell yes and it's the thing keeping me using runit20:36
Tvabout twice a year i try to migrate away, and there's just nothing better..20:36
sadmacTv: then keep using runit :)20:37
* sadmac has no desire to dominate the planet20:37
Tvi wanted to have instance jobs20:37
Tvoh well20:37
sadmacits a problem we've looked at a lot, and for what upstart does, none of the solutions we've found are quite right. But we'll get there20:38

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