SpamapS | soren: the latter | 01:38 |
---|---|---|
SpamapS | soren: it chroots just before running the bits. | 01:39 |
SpamapS | soren: its somewhat weird, because of namespcae collisions, but reliably weird | 01:39 |
soren | SpamapS: Ok, cool. Just playing around with an Ubuntu chroot on an Android device, thought I'd be able to run upstart inside of the chroot. | 08:30 |
SpamapS | soren: thats been a frustration for a long time. The new user session stuff might make it closer to reality than it was before. | 13:46 |
SpamapS | soren: works fine inside a new process namespace (i.e. lxc) | 13:47 |
MMlosh | hello. Can I have upstart log stderr of my program? My search query "upstart conf log stderr" didn't return anything useful | 14:20 |
ion | Do you have /var/log/upstart? | 14:27 |
MMlosh | let's see.. | 14:27 |
MMlosh | it's a directory | 14:28 |
MMlosh | ion, there are some logfiles, but none for my program | 14:28 |
ion | Ok. I haven’t really looked at the logging mechanism for /var/log/upstart, but here’s something else you can do: change | 14:29 |
ion | exec foo | 14:29 |
ion | to | 14:29 |
ion | script | 14:29 |
SpamapS | MMlosh: the default is to log stdout and stderr to /var/log/upstart/$jobname.log | 14:29 |
ion | exec 2>/tmp/mylogfile | 14:30 |
ion | exec foo | 14:30 |
ion | end script | 14:30 |
ion | Well, actually just exec foo 2>/tmp/mylogfile would suffice for *that*. | 14:30 |
SpamapS | ion: exec never returns | 14:30 |
SpamapS | oh | 14:30 |
ion | But if you have a script of some kind, add the exec 2>/tmp/mylogfile in the beginning. | 14:30 |
SpamapS | n/m I see thats a redir | 14:30 |
SpamapS | you don't have to do that though | 14:30 |
SpamapS | both are logged | 14:30 |
MMlosh | SpamapS, hmm... why doesn't it, then.. oh.. right.. that machine is ancient, 10.04 and ARM-based. Is it possible that it wasn't the default in the past? | 14:31 |
SpamapS | 10.04 didn't have that feature | 14:31 |
SpamapS | it debuted in 11.10 I think, or 12.04 | 14:31 |
MMlosh | sry.. I forgot on which machine it's running.. This one is 12.10, so it should be ok | 14:31 |
SpamapS | upstart 1.5 I think | 14:32 |
MMlosh | yes, I am running upstart 1.5-0ubuntu9 | 14:32 |
SpamapS | MMlosh: man 5 init clearly states console log connects stdout and stderr to the logging pty | 14:33 |
SpamapS | MMlosh: note that the log file will not be created until something is printed on those | 14:33 |
MMlosh | my program prints an error with certain probability, so I am not 100% sure that something was printed | 14:35 |
SpamapS | MMlosh: do you have 'console output' or 'console none' or 'console owner' in your job file? | 14:36 |
MMlosh | the .config is simple "exec /usr/bin/getstream -c $config" | 14:36 |
MMlosh | no, no console configuration | 14:36 |
MMlosh | it has only these: description, start, stop, respawn, respawn limit, umask, aww crap.. console none | 14:36 |
MMlosh | thanks for hunting it down.. stupid me | 14:36 |
MMlosh | SpamapS, is it normal, that all files in /var/log/upstart/ end ".gz" ? I expected at least some to be non-gzipped | 14:39 |
SpamapS | MMlosh: its alright, we all need a second pair of eyes sometimes :) | 14:40 |
SpamapS | MMlosh: those are rotated old files | 14:40 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!