Skip to content

Commit

Permalink
systemd: connect standard output/error to null
Browse files Browse the repository at this point in the history
systemd 35 and newer by default connect all services' stdout/stderr with
syslog. In order to avoid logging loops syslog-ng needs to opt out of
this behaviour, hence we override the default here and connect
syslog-ng's output with /dev/null.

For more information see:
http://www.freedesktop.org/wiki/Software/systemd/syslog

Signed-off-by: Lennart Poettering <[email protected]>
  • Loading branch information
poettering authored and bazsi committed Sep 2, 2011
1 parent 8ed5a7a commit fcb8724
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/systemd/syslog-ng.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Sockets=syslog.socket
ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service
ExecStart=/usr/sbin/syslog-ng -F
ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=null

[Install]
WantedBy=multi-user.target

0 comments on commit fcb8724

Please sign in to comment.