[systemd-devel] [RFC] exec: introduce StandardOutputFile/StandardErrorFile option
lennart at poettering.net
Tue May 19 02:59:19 PDT 2015
On Tue, 19.05.15 11:44, WaLyong Cho (walyong.cho at 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 Poettering, Red Hat
More information about the systemd-devel