-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of StandardOutput=syslog #15812
Conversation
http://codesearch.debian.net/search?q=StandardOutput%3Dsyslog&literal=1 |
Does this also affect |
i think early howtos suggested that. yes, it applies to both the stdout and the stderr stuff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice. My only gripe is that if codesearch shows 8 pages of packages using this, we shouldn't make this a warning. Esp. that it really doesn't matter much. We autocorrect this, so info (or at most notice), seems totally appropriate.
dbcc0c5
to
441d7c3
Compare
force pushed new version. Only change is the LOG_NOTICE change. Took liberty to upgrade green label. |
Could you update the commit message to mention I guess we could add a lintian check in Debian which checks for this. Would be great if there was a recommendation what should be used instead. |
The log message makes a suggestion already: "Please update your unit file, and consider removing the setting altogether." That should be enough, no? |
We dropped them from the StandardOuput= documentation long ago, but elswhere some references where lurking.
…lar for StandardError=) Let's go one step further and upgrade implicitly. Usually =syslog assignments are historic artifacts only. Let's upgrade the lines automatically, and politely suggest people update their unit files/configuration (and drop the lines altogether, without replacement). Fixes: systemd#15807
441d7c3
to
f3dc6af
Compare
added this StandardError= thing to the commit msg |
Yes, thanks. |
bionic-i386 timed out. |
Recent systemd include a warning message when StandardOutput / StandardError is set to "syslog" in a unit file [15812]. Quoting [poettering] from another PR which caused him to create this one: > StandardOutput=syslog is long obsolete, we don't document it anymore > even. it enables forwarding to syslog even when journald wouldn't do > that normally. > > Simply don#t use StandardOutput=syslog. The implied service default is > StandardOutput=journal anyway, which does not suffer by this problem. So simply remove these lines and honor the DefaultStandardOutput / DefaultStandardError if the admin set them. [15812]: systemd/systemd#15812 [poettering]: systemd/systemd#15807 (comment)
Recent systemd include a warning message when StandardOutput / StandardError is set to "syslog" in a unit file [15812]. Quoting [poettering] from another PR which caused him to create this one: > StandardOutput=syslog is long obsolete, we don't document it anymore > even. it enables forwarding to syslog even when journald wouldn't do > that normally. > > Simply don#t use StandardOutput=syslog. The implied service default is > StandardOutput=journal anyway, which does not suffer by this problem. So simply remove these lines and honor the DefaultStandardOutput / DefaultStandardError if the admin set them. [15812]: systemd/systemd#15812 [poettering]: systemd/systemd#15807 (comment)
Recent systemd include a warning message when StandardOutput / StandardError is set to "syslog" in a unit file [15812]. Quoting [poettering] from another PR which caused him to create this one: > StandardOutput=syslog is long obsolete, we don't document it anymore > even. it enables forwarding to syslog even when journald wouldn't do > that normally. > > Simply don#t use StandardOutput=syslog. The implied service default is > StandardOutput=journal anyway, which does not suffer by this problem. So simply remove these lines and honor the DefaultStandardOutput / DefaultStandardError if the admin set them. [15812]: systemd/systemd#15812 [poettering]: systemd/systemd#15807 (comment)
Recent systemd include a warning message when StandardOutput / StandardError is set to "syslog" in a unit file [15812]. Quoting [poettering] from another PR which caused him to create this one: > StandardOutput=syslog is long obsolete, we don't document it anymore > even. it enables forwarding to syslog even when journald wouldn't do > that normally. > > Simply don#t use StandardOutput=syslog. The implied service default is > StandardOutput=journal anyway, which does not suffer by this problem. So simply remove these lines and honor the DefaultStandardOutput / DefaultStandardError if the admin set them. [15812]: systemd/systemd#15812 [poettering]: systemd/systemd#15807 (comment)
This patch updates the deprecated syslog setting i.e StandardError=syslog with StandardError=journal Pagure: https://pagure.io/freeipa/issue/9279 Ref: systemd/systemd#15812 Signed-off-by: Sudhir Menon <sumenon@redhat.com>
This patch updates the deprecated syslog setting i.e StandardError=syslog with StandardError=journal Pagure: https://pagure.io/freeipa/issue/9279 Ref: systemd/systemd#15812 Signed-off-by: Sudhir Menon <sumenon@redhat.com> Reviewed-By: Peter Keresztes Schmidt <carbenium@outlook.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This patch updates the deprecated syslog setting i.e StandardError=syslog with StandardError=journal Pagure: https://pagure.io/freeipa/issue/9279 Ref: systemd/systemd#15812 Signed-off-by: Sudhir Menon <sumenon@redhat.com>
This patch updates the deprecated syslog setting i.e StandardError=syslog with StandardError=journal Pagure: https://pagure.io/freeipa/issue/9279 Ref: systemd/systemd#15812 Signed-off-by: Sudhir Menon <sumenon@redhat.com>
This patch updates the deprecated syslog setting i.e StandardError=syslog with StandardError=journal Pagure: https://pagure.io/freeipa/issue/9279 Ref: systemd/systemd#15812 Signed-off-by: Sudhir Menon <sumenon@redhat.com> Reviewed-By: Peter Keresztes Schmidt <carbenium@outlook.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This patch updates the deprecated syslog setting i.e StandardError=syslog with StandardError=journal Pagure: https://pagure.io/freeipa/issue/9279 Ref: systemd/systemd#15812 Signed-off-by: Sudhir Menon <sumenon@redhat.com> Reviewed-By: Peter Keresztes Schmidt <carbenium@outlook.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
systemd 249 (used in Ubuntu 22.04 LTS) throws the following error: /etc/systemd/system/stalwart-mail.service:16: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether. /etc/systemd/system/stalwart-mail.service:17: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether. This is caused by StandardOutput=syslog and StandardError=syslog found in install.sh, which are as the error suggests obsolete options that should not be used.[1] They have "correct" settings in stalwart-mail.service, but these settings are also the implicit default, which means they are not necessary.[1] This was patched in systemd #15812 in May, 2020.[2] I have tested this by simply removing the values in /etc/systemd/system/stalwart-mail.service on my server, running 'daemon-reload' and restarting the service, then confirming that logs are still being written to journalctl as well as /opt/stalwart-mail/logs [1]: <systemd/systemd#15807 (comment)> [2]: <systemd/systemd#15812>
It's confusing and mostly a historic artifact. let's patch to StandardOutput=journal automatically, and log about it.
Fixes: #15807