tmpfiles.d conflicting rules to manage /var/log

Bug #1530610 reported by Simon Déziel
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
rsyslog (Ubuntu)
Confirmed
High
Unassigned

Bug Description

/usr/lib/tmpfiles.d/00rsyslog.conf from rsyslog's package and /usr/lib/tmpfiles.d/var.conf from systemd's package both try to manage the directory /var/log.

rsyslog's file takes precedence but the duplicated rules cause this to be logged:

  systemd-tmpfiles[3679]: [/usr/lib/tmpfiles.d/var.conf:14] Duplicate line for path "/var/log", ignoring.

Also, both rules are different:

 $ grep '^d /var/log ' /usr/lib/tmpfiles.d/{00rsyslog,var}.conf
 /usr/lib/tmpfiles.d/00rsyslog.conf:d /var/log 0775 root syslog -
 /usr/lib/tmpfiles.d/var.conf:d /var/log 0755 - - -

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: rsyslog 8.14.0-2ubuntu1
ProcVersionSignature: Ubuntu 4.3.0-5.16-generic 4.3.3
Uname: Linux 4.3.0-5-generic x86_64
ApportVersion: 2.19.3-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Jan 2 21:42:42 2016
SourcePackage: rsyslog
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.logcheck.ignore.d.server.rsyslog: [deleted]

Revision history for this message
Simon Déziel (sdeziel) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rsyslog (Ubuntu):
status: New → Confirmed
Changed in rsyslog (Ubuntu):
importance: Undecided → High
Revision history for this message
Simon Déziel (sdeziel) wrote :

rsyslog 8.16.0-1ubuntu1 now includes a logcheck rule to specifically ignore this problem. The changelog doesn't explain why the conflict is being ignored instead of resolved.

Revision history for this message
Ken Sharp (kennybobs) wrote :
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.