summaryrefslogtreecommitdiff
path: root/tmpfiles.d
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-04-02 01:08:31 +0200
committerLennart Poettering <lennart@poettering.net>2011-04-02 01:08:31 +0200
commitcca4aeeead1985f503d175eb1fcad9ed66f2e25d (patch)
treef1d7de6984a2825960d58e1c28a5d545c38fe52e /tmpfiles.d
parentbb29785e0df6a7cf07db0259a60bc1f3b4814cb4 (diff)
tmpfiles: split off rules for legacy systems into legacy.conf
Diffstat (limited to 'tmpfiles.d')
-rw-r--r--tmpfiles.d/legacy.conf21
-rw-r--r--tmpfiles.d/systemd.conf3
2 files changed, 21 insertions, 3 deletions
diff --git a/tmpfiles.d/legacy.conf b/tmpfiles.d/legacy.conf
new file mode 100644
index 000000000..fff2779e6
--- /dev/null
+++ b/tmpfiles.d/legacy.conf
@@ -0,0 +1,21 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# See tmpfiles.d(5) for details
+
+# These files are considered legacy and are unnecessary on legacy-free
+# systems. /run/lock/subsys is used for serializing SysV service
+# execution, and hence without use on SysV-less systems.
+#
+# /run/lock/lockdev is used to serialize access to tty devices via
+# LCK..xxx style lock files, For more information see:
+# http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html
+# On modern systems a BSD file lock is a better choice if
+# serialization is needed on those devices.
+
+d /run/lock/subsys 0755 root root -
+d /run/lock/lockdev 0775 root lock -
diff --git a/tmpfiles.d/systemd.conf b/tmpfiles.d/systemd.conf
index 31fd97f0b..ab6f20116 100644
--- a/tmpfiles.d/systemd.conf
+++ b/tmpfiles.d/systemd.conf
@@ -8,9 +8,6 @@
# See tmpfiles.d(5) for details
d /run/lock 0755 root root -
-d /run/lock/subsys 0755 root root -
-d /run/lock/lockdev 0775 root lock -
-
d /run/user 0755 root root 10d
F /run/utmp 0664 root utmp -