Bug 43872

Summary: RFE: Please consider setting 'DefaultStandardError=syslog' as well
Product: systemd Reporter: Michał Górny <mgorny>
Component: generalAssignee: Lennart Poettering <lennart>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Michał Górny 2011-12-15 15:01:04 UTC
Right now, systemd defaults to:

DefaultStandardOutput=syslog
DefaultStandardError=inherit

This is fine for most services. However, it doesn't work that nice for sockets where stdout needs to be be replaced with the socket. In that case, stderr defaults to inheriting the socket as well and needs to be replaced by syslog.

I think that if we're already defaulting to sending output to syslog, we could set DefaultStandardError=syslog as well. Then socket-services wouldn't need to explicitly set StandardError=syslog and could rely on the default instead.

More importantly, then user could just replace DefaultStandardOutput and DefaultStandardError in his/her config (i.e. with a logfile) and socket-services would tolerate that.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.