Logging in future upstart
Scott James Remnant
scott at netsplit.com
Sun Mar 22 18:53:03 GMT 2009
On Sun, 2009-03-22 at 19:37 +0100, Matthias Urlichs wrote:
> In fact, I just had an better idea: don't use a named pipe. upstart
> could simply read the stderr of all processes it starts, store that in a
> ring buffer, and feed a logger process from that (via stdin).
>
> Replace any lines which the logger doesn't read fast enough (i.e. the
> ring buffer overflows) with a "<skipped>" marker. Auto-kill+restart the
> logger if it doesn't want to read its standard input for too long.
>
This is pretty much what I'm thinking of doing - with the added bonus
that we can keep hold of this buffer and send it elsewhere on failure
like cron does.
(email output to root when apached dies anyone?)
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20090322/2f4d5474/attachment.pgp
More information about the upstart-devel
mailing list