/srv/irclogs.ubuntu.com/2013/02/28/#upstart.txt

=== soren__ is now known as soren
=== Md_ is now known as Md
stgraberjodh: hi, I noticed one pretty bad bug with the session init re-exec14:27
stgraberjodh: after the re-exec, it doesn't accept dbus connections on the private bus (though according to netstat, it still listens on the socket)14:28
stgraberjodh: and IIRC I was getting a "No such file or directory" error related to the re-exec in .xsession_errors14:29
stgraberjodh: that was when using: dbus-send --type=method_call --print-reply --address=$UPSTART_SESSION /com/ubuntu/Upstart com.ubuntu.Upstart0_6.Restart14:29
jodhstgraber: hmm. thanks. Session Init re-exec is still a TODO for me :)14:30
stgraberjodh: I'm happy to take a look at it as IIRC we actually saw that one working at some point... shouldn't be too difficult to fix14:36
jodhstgraber: that'd be great, thanks.14:36
stgraber(I already have the upstart job to trigger the re-exec of the session init and will push it as soon as it actually works)14:36
jodhany thoughts on the logrotate job?14:37
stgraberjodh: looks reasonable, can't find anything obviously wrong with it14:41
jodhstgraber: yeah, it's just ugly :)14:42
stgraberjodh: execve("init", ["init", "--user", "--state-fd", "25", "--debug", "--restart"], [/* 34 vars */]) = -1 ENOENT (No such file or directory)16:17
jodhstgraber: awesome :) better make that execvp then ;)16:21
stgraberjodh: yep, just surprised that it works for pid1 ;)16:23
jodhstgraber: the kernel hard-codes the path and you have to specify the full path using init=16:24
stgraberjodh: ok, trying to replace execv by execvp in state.c, hopefully that'll do the trick16:25
jodhstgraber: either that, or specify the full path in 59upstart.16:26
stgraberjodh: we try not to do that usually (I think there's something in the Debian policy saying you're not supposed to)16:28
stgraberjodh: worked!16:37
stgraberjodh: will send a MP16:37
jodhstgraber: great! thanks.16:37
stgraber1-char diff ;)16:37
jodhstgraber: the simplest are always the best ;)16:39
stgraberjodh: https://code.launchpad.net/~stgraber/upstart/upstart-fix-reexec/+merge/15105016:42
mayhewIs there a cleaner way than `su` of specifying the user of the process?21:54
xnoxmayhew: setuid stanza, see http://upstart.ubuntu.com/cookbook/ 22:05
mayhewthanks!22:13

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