chiark / gitweb /
target: implicitly shutdown targets on shutdown, so that they are pulled into the...
[elogind.git] / units / var-run.service
index a958ff7d11125e762efa56fb9bba7d543ae180c0..f493ee8ec1e43f77f7afff2e76c973b671654645 100644 (file)
@@ -14,8 +14,9 @@ Before=local-fs.target
 
 [Service]
 Type=oneshot
-ValidNoProcess=yes
+RemainAfterExit=yes
 ExecStart=/bin/touch /var/run/utmp ; /bin/chmod 0664 /var/run/utmp ; /bin/chown root:utmp /var/run/utmp
+ExecStart=/bin/mkdir /var/run/user ; /bin/chmod 0755 /var/run/user ; -/sbin/restorecon /var/run/user
 
 [Install]
 WantedBy=local-fs.target