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

WaLyong Cho walyong.cho at samsung.com
Mon May 18 19:49:45 PDT 2015

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.
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.


More information about the systemd-devel mailing list