[systemd-devel] [RFC] exec: introduce StandardOutputFile/StandardErrorFile option

Andrei Borzenkov arvidjaar at gmail.com
Mon May 18 20:53:44 PDT 2015


В Tue, 19 May 2015 11:49:45 +0900
WaLyong Cho <walyong.cho at samsung.com> пишет:

> On 2015년 05월 19일 11:44, WaLyong Cho 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'.
> 
> I think this patch is not complete yet. But I'd like to check you think
> this facility is useful or not.

You should start with describing your use case and what is missing in
current logging. You can fetch all unit output from journal already.

> If you agree then I'd like to add
> StandardOutputFileMode/StandardErrorFileMode and
> StandardOutputFlag/StandardErrorFlag option.
> StandardOutputFileMode/StandardErrorFileMode will able to set the file
> mode such like 0644 and StandardOutputFlag/StandardErrorFlag will able
> to set the file open flag such like append or trunc.
> 
> WaLyong
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel



More information about the systemd-devel mailing list