Skip to contentSkip to conversation

alsactl: Remove standard output definition in systemd unit

PATCH Applied Paul Menzel 2 participants 2 messages Dec 27, 2016 – Dec 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alsactl: Remove standard output definition in systemd unit

Date: Tue, 8 Jul 2014 07:23:06 +0000

/lib/systemd/system/alsa-restore.service specifies StandardOutput=syslog. This overrides the DefaultStandardOutput setting from /etc/systemd/system.conf, which the system administrator can use to specify how output gets logged. In particular, the sysadmin may want output to go to the journal, or to syslog, or nowhere at all [1].

This patch removes the definition entirely, so the units can use the system default.

Upstream the patch from the Debian package [2].

[1] https://bugs.debian.org/741123
  "systemd services should not use StandardOutput=syslog; should rely
on DefaultStandardOutput"
[2] https://sources.debian.net/src/alsa-utils/1.1.2-1/debian/patches/systemd_standardoutput.patch/

---
 alsactl/alsa-restore.service.in | 1 -
 1 file changed, 1 deletion(-)
alsactl/alsa-restore.service.in +0 -1
index f3cd86b..c092c2f 100644
@@ -15,4 +15,3 @@ Type=oneshot
 RemainAfterExit=true
 ExecStart=-@sbindir@/alsactl restore
 ExecStop=-@sbindir@/alsactl store
-StandardOutput=syslog
Signature · 1 line
2.11.0
Applied
#1 lore raw
Quoted 14 lines · Paul Menzel

Date: Tue, 8 Jul 2014 07:23:06 +0000

/lib/systemd/system/alsa-restore.service specifies StandardOutput=syslog. This overrides the DefaultStandardOutput setting from /etc/systemd/system.conf, which the system administrator can use to specify how output gets logged. In particular, the sysadmin may want output to go to the journal, or to syslog, or nowhere at all [1].

This patch removes the definition entirely, so the units can use the system default.

Upstream the patch from the Debian package [2].

Quoted 7 lines

[1] https://bugs.debian.org/741123
  "systemd services should not use StandardOutput=syslog; should rely
on DefaultStandardOutput"
[2] https://sources.debian.net/src/alsa-utils/1.1.2-1/debian/patches/systemd_standardoutput.patch/

Applied, thanks.

Takashi
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel