rsyslog config of tmpfiles generates bogus log messages

Bug #1766567 reported by Ian Turner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rsyslog (Ubuntu)
Expired
Undecided
Unassigned
systemd (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

/usr/lib/tmpfiles.d/00rsyslog.conf (in the rsyslog package) includes these lines:

# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by
# the syslog group, so that rsyslog can run as user.
# See tmpfiles.d(5) for details.

# Type Path Mode UID GID Age Argument
d /var/log 0775 root syslog -

Maybe this overriding works, but it also means that every time tmpfiles runs, we get log messages like this:
Apr 24 13:46:37 cue systemd-tmpfiles[28279]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.

I suspect the best fix for this is to move the systemd config for /var/log into its own file (/usr/lib/tmpfiles.d/systemd-varlog.conf), then have rsyslog add an empty file (or /dev/null symlink) to suppress it (/etc/tmpfiles.d/systemd-varlog.conf or /run/tmpfiles.d/systemd-varlog.conf). Or just use apt to move the file out of the way when rsyslog is installed.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: rsyslog 8.16.0-1ubuntu10
ProcVersionSignature: Ubuntu 4.15.0-15.16-generic 4.15.15
Uname: Linux 4.15.0-15-generic x86_64
ApportVersion: 2.20.9-0ubuntu6
Architecture: amd64
CurrentDesktop: KDE
Date: Tue Apr 24 14:56:42 2018
InstallationDate: Installed on 2018-03-23 (31 days ago)
InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180306.1)
SourcePackage: rsyslog
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ian Turner (vectro) wrote :
Changed in systemd (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Dimitri John Ledkov (xnox) wrote :
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Package: rsyslog 8.16.0-1ubuntu10

Package out of date, please upgrade, and check if it resolves the problem you report...

Changed in systemd (Ubuntu):
status: New → Invalid
Changed in rsyslog (Ubuntu):
status: New → Incomplete
Revision history for this message
Ian Turner (vectro) wrote :

Upgraded to rsyslog 8.32.0-1ubuntu3, and result looks good. Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for rsyslog (Ubuntu) because there has been no activity for 60 days.]

Changed in rsyslog (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.