[systemd-commits] units/var-lock.mount units/var-lock.service units/var-run.mount units/var-run.service

Kay Sievers kay at kemper.freedesktop.org
Tue Aug 17 05:01:59 PDT 2010


 units/var-lock.mount   |    3 +++
 units/var-lock.service |    1 +
 units/var-run.mount    |    3 +++
 units/var-run.service  |    3 ++-
 4 files changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 322198005ace1aca0d504726f2444c84bd8b5430
Author: Kay Sievers <kay.sievers at vrfy.org>
Date:   Tue Aug 17 14:01:12 2010 +0200

    units: add missing After= for var-run.service, var-lock.service

diff --git a/units/var-lock.mount b/units/var-lock.mount
index f14ea94..17c4f52 100644
--- a/units/var-lock.mount
+++ b/units/var-lock.mount
@@ -14,3 +14,6 @@ What=tmpfs
 Where=/var/lock
 Type=tmpfs
 Options=mode=775,gid=lock
+
+[Install]
+WantedBy=local-fs.target
diff --git a/units/var-lock.service b/units/var-lock.service
index b148b5d..d382958 100644
--- a/units/var-lock.service
+++ b/units/var-lock.service
@@ -9,6 +9,7 @@
 Description=Lock Directory
 DefaultDependencies=no
 Requires=var-lock.mount
+After=var-run.mount
 Before=local-fs.target
 
 [Service]
diff --git a/units/var-run.mount b/units/var-run.mount
index f786289..90dfe0e 100644
--- a/units/var-run.mount
+++ b/units/var-run.mount
@@ -14,3 +14,6 @@ What=tmpfs
 Where=/var/run
 Type=tmpfs
 Options=mode=755
+
+[Install]
+WantedBy=local-fs.target
diff --git a/units/var-run.service b/units/var-run.service
index 10e2b05..a958ff7 100644
--- a/units/var-run.service
+++ b/units/var-run.service
@@ -9,12 +9,13 @@
 Description=Runtime Directory
 DefaultDependencies=no
 Requires=var-run.mount
+After=var-run.mount
 Before=local-fs.target
 
 [Service]
 Type=oneshot
 ValidNoProcess=yes
-ExecStart=/bin/touch /var/run/utmp ; /bin/chown root:utmp /var/run/utmp
+ExecStart=/bin/touch /var/run/utmp ; /bin/chmod 0664 /var/run/utmp ; /bin/chown root:utmp /var/run/utmp
 
 [Install]
 WantedBy=local-fs.target


More information about the systemd-commits mailing list