/srv/irclogs.ubuntu.com/2014/06/11/#upstart.txt

fluterhi10:34
fluteris there a tool to log and track all the events emited and handled by upstart and jobs?10:34
xnoxupstart-monitor13:13
gansbresthello. In my upstart scripts I often do the following /usr/local/bin/node /release/thanks-jetpack/current/bin/txjp >> /media/ephemeral0/logs/txjp_web 2>&117:44
gansbrestbut now I'm trying to attach logrotate to that log file and trying to figure out how to cause upstart to reopen the file after rotation17:45
xnoxgansbrest: recent enough upstart, collects all stdout & stderr, and does log rotation19:35
xnoxinto /var/log/upstart/$job.log19:35
xnoxgansbrest: so don't do that at all =)19:36
xnoxgansbrest: otherwise, you should use logger19:36
xnoxe.g. see $ man logger. I believe that correctly reopens files etc.19:36
gansbrestxnox: you mean just keep  /usr/local/bin/node /release/thanks-jetpack/current/bin/txjp and upstart will do the rest?20:17
gansbrestwill it create 2 files, .out and .err?20:17
xnoxgansbrest: no single .log with both stdout & stderr.20:25
xnoxin /var/log/upstart/20:25
xnoxgansbrest: do you have /var/log/upstart/ on your system?20:25
xnoxor what's the output of $ sudo initctl version20:25
gansbrestI think I'm out of luck here 20:26
gansbrestinit (upstart 0.6.5)20:26
gansbrestvery old version20:26
gansbrestit's interesting that upstart is installed to amazon AMI seem like which is REHL and CentOS 20:26
gansbrestI mean it's installed for us, someone installed it )20:27
gansbrestI think logger may be an answer as you say20:30
gansbrestor writing log directly from the app, and handle HUP signal cause by upstart reload20:31

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