chiark / gitweb /
units: add missing After= for var-run.service, var-lock.service
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 17 Aug 2010 12:01:12 +0000 (14:01 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 17 Aug 2010 12:01:12 +0000 (14:01 +0200)
units/var-lock.mount
units/var-lock.service
units/var-run.mount
units/var-run.service

index f14ea94..17c4f52 100644 (file)
@@ -14,3 +14,6 @@ What=tmpfs
 Where=/var/lock
 Type=tmpfs
 Options=mode=775,gid=lock
+
+[Install]
+WantedBy=local-fs.target
index b148b5d..d382958 100644 (file)
@@ -9,6 +9,7 @@
 Description=Lock Directory
 DefaultDependencies=no
 Requires=var-lock.mount
+After=var-run.mount
 Before=local-fs.target
 
 [Service]
index f786289..90dfe0e 100644 (file)
@@ -14,3 +14,6 @@ What=tmpfs
 Where=/var/run
 Type=tmpfs
 Options=mode=755
+
+[Install]
+WantedBy=local-fs.target
index 10e2b05..a958ff7 100644 (file)
@@ -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