summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-29 01:39:09 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-29 01:39:31 +0200
commit93ca9714e6afa0adc2aa674e2505ca97ca5b91c9 (patch)
tree8880c5fa008dcae288bcc990a5e405c02ba6ccd6 /units
parentafbf835326b0cc05c282b43f14ed501977de2004 (diff)
units: get rid of special setup services for /var/run, /var/lock and /tmp, and rely on tmpfiles.d/ instead
Diffstat (limited to 'units')
-rw-r--r--units/tmp.service21
-rw-r--r--units/var-lock.service18
-rw-r--r--units/var-run.service19
3 files changed, 0 insertions, 58 deletions
diff --git a/units/tmp.service b/units/tmp.service
deleted file mode 100644
index 22892394f9..0000000000
--- a/units/tmp.service
+++ /dev/null
@@ -1,21 +0,0 @@
-# This file is part of systemd.
-#
-# systemd is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-[Unit]
-Description=Temporary Directory
-DefaultDependencies=no
-Requires=tmp.mount
-After=tmp.mount
-Before=local-fs.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/bin/mkdir -p -m1777 /tmp/.X11-unix /tmp/.ICE-unix ; -/sbin/restorecon /tmp/.X11-unix /tmp/.ICE-unix
-
-[Install]
-WantedBy=local-fs.target
diff --git a/units/var-lock.service b/units/var-lock.service
deleted file mode 100644
index c2e53cdb36..0000000000
--- a/units/var-lock.service
+++ /dev/null
@@ -1,18 +0,0 @@
-# This file is part of systemd.
-#
-# systemd is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-[Unit]
-Description=Lock Directory
-DefaultDependencies=no
-Requires=var-lock.mount
-After=var-lock.mount
-Before=local-fs.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/bin/mkdir -p /var/lock/subsys
diff --git a/units/var-run.service b/units/var-run.service
deleted file mode 100644
index 2cb861efc2..0000000000
--- a/units/var-run.service
+++ /dev/null
@@ -1,19 +0,0 @@
-# This file is part of systemd.
-#
-# systemd is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-[Unit]
-Description=Runtime Directory
-DefaultDependencies=no
-Requires=var-run.mount
-After=var-run.mount
-Before=local-fs.target
-
-[Service]
-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