Commit 65ae3821 authored by Kay Sievers's avatar Kay Sievers
Browse files

units: enable var-run + var-lock service by default

parent f9ccc724
......@@ -905,6 +905,7 @@ install-data-hook:
$(DESTDIR)$(systemunitdir)/sockets.target.wants \
$(DESTDIR)$(systemunitdir)/sysinit.target.wants \
$(DESTDIR)$(systemunitdir)/shutdown.target.wants \
$(DESTDIR)$(systemunitdir)/local-fs.target.wants \
$(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
$(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
$(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
......@@ -946,6 +947,12 @@ install-data-hook:
$(LN_S) ../systemd-update-utmp-shutdown.service && \
$(LN_S) ../hwclock-save.service && \
$(LN_S) ../systemd-random-seed-save.service )
( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
rm -f systemd-update-utmp-shutdown.service \
var-run.service \
var-lock.service && \
$(LN_S) ../var-run.service && \
$(LN_S) ../var-lock.service )
( cd $(DESTDIR)$(sessionunitdir) && \
rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
$(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
......
......@@ -14,6 +14,3 @@ What=tmpfs
Where=/var/lock
Type=tmpfs
Options=mode=775,gid=lock
[Install]
WantedBy=local-fs.target
......@@ -16,6 +16,3 @@ Before=local-fs.target
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/mkdir -p /var/lock/subsys
[Install]
WantedBy=local-fs.target
......@@ -14,6 +14,3 @@ What=tmpfs
Where=/var/run
Type=tmpfs
Options=mode=755
[Install]
WantedBy=local-fs.target
......@@ -17,6 +17,3 @@ Type=oneshot
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment