CADBOT | Hi | 08:05 |
---|---|---|
=== JanC_ is now known as JanC | ||
jonafan | how do you save the logs for an upstart service forever | 20:18 |
jonafan | every time i search for this i get some dumb nodejs crap | 20:18 |
dstokes | you just trying to save the output of your service to a log? (not sure what you mean by 'forever') | 21:48 |
dstokes | jonafan: ping | 21:49 |
jonafan | yes | 21:50 |
dstokes | use io redir? `exec some_process > /var/log/output.log 2>&1` | 21:51 |
dstokes | whoops, should probably use >> instead to append | 21:52 |
jonafan | okay that'll work | 21:52 |
jonafan | >>s for both, right? | 21:53 |
jonafan | this is a very exciting day for me now | 21:56 |
jonafan | i restarted the process and the pid it ended up with is 1337 | 21:56 |
dstokes | jonafan: `exec some_proc >> /var/log/output.log 2>&1` | 21:57 |
jonafan | aw man, there goes 1337 | 21:58 |
dstokes | redirects stderr to stdout and stdout to file | 21:58 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!