On Tue, 19.05.15 11:44, WaLyong Cho (walyong....@samsung.com) wrote:

> To redirect stdout/stderr to file add 'file' option to
> StandardOutput/StandardError. And to specify the file path, add
> StandardOutputFile/StandardErrorFile option.
> If only set StandardOutput/StandardError to 'file' without set of
> StandardOutputFile/StandardErrorFile option, then it will be
> redirected to '/dev/null'.

This has been requested before, but I am really not convinced this is
a good idea since such a simple scheme for stdout/stderr ignores the
need for some kind of file rotation. Just filling up the disk like
this unbounded isn't really an option. And you cannot really add any
kind of rotation if you connect the fds directly. And if you don't
connect them directly, then you'd basically implement a second
journald which I am really not interested in...

Connecting stdin to a file otoh makes more sense, but I doubt that's
what you are after...

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to