From 322198005ace1aca0d504726f2444c84bd8b5430 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 17 Aug 2010 14:01:12 +0200 Subject: [PATCH] units: add missing After= for var-run.service, var-lock.service --- 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(-) diff --git a/units/var-lock.mount b/units/var-lock.mount index f14ea94d..17c4f522 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 b148b5df..d382958a 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 f7862895..90dfe0ed 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 10e2b052..a958ff7d 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 -- 2.39.5