[systemd-devel] [PATCH] tmpfiles.d: change some 'd's to 'D's

Tom Gundersen teg at jklm.no
Mon Jan 2 15:28:20 PST 2012


The 'Age' filed only makes sense when used together with 'D', as
'd' does not delete any files.

Change all entries with a non-empty Age field from 'd' to 'D'.
---
 tmpfiles.d/systemd.conf |    4 ++--
 tmpfiles.d/tmp.conf     |    4 ++--
 tmpfiles.d/x11.conf     |   10 +++++-----
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tmpfiles.d/systemd.conf b/tmpfiles.d/systemd.conf
index be29c06..a4b1d2e 100644
--- a/tmpfiles.d/systemd.conf
+++ b/tmpfiles.d/systemd.conf
@@ -7,13 +7,13 @@
 
 # See tmpfiles.d(5) for details
 
-d /run/user 0755 root root 10d
+D /run/user 0755 root root 10d
 F /run/utmp 0664 root utmp -
 
 f /var/log/wtmp 0664 root utmp -
 f /var/log/btmp 0600 root utmp -
 
-d /var/cache/man - - - 30d
+D /var/cache/man - - - 30d
 
 r /forcefsck
 r /forcequotacheck
diff --git a/tmpfiles.d/tmp.conf b/tmpfiles.d/tmp.conf
index 8915b82..59b9033 100644
--- a/tmpfiles.d/tmp.conf
+++ b/tmpfiles.d/tmp.conf
@@ -8,5 +8,5 @@
 # See tmpfiles.d(5) for details
 
 # Clear tmp directories separately, to make them easier to override
-d /tmp 1777 root root 10d
-d /var/tmp 1777 root root 30d
+D /tmp 1777 root root 10d
+D /var/tmp 1777 root root 30d
diff --git a/tmpfiles.d/x11.conf b/tmpfiles.d/x11.conf
index 7f81af6..ddc8e93 100644
--- a/tmpfiles.d/x11.conf
+++ b/tmpfiles.d/x11.conf
@@ -8,11 +8,11 @@
 # See tmpfiles.d(5) for details
 
 # Make sure these are created by default so that nobody else can
-d /tmp/.X11-unix 1777 root root 10d
-d /tmp/.ICE-unix 1777 root root 10d
-d /tmp/.XIM-unix 1777 root root 10d
-d /tmp/.font-unix 1777 root root 10d
-d /tmp/.Test-unix 1777 root root 10d
+D /tmp/.X11-unix 1777 root root 10d
+D /tmp/.ICE-unix 1777 root root 10d
+D /tmp/.XIM-unix 1777 root root 10d
+D /tmp/.font-unix 1777 root root 10d
+D /tmp/.Test-unix 1777 root root 10d
 
 # Unlink the X11 lock files
 r /tmp/.X[0-9]*-lock
-- 
1.7.8.1



More information about the systemd-devel mailing list