summaryrefslogtreecommitdiff
path: root/units/machines.target
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-29 12:38:26 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-29 17:00:05 +0100
commit6a140df0048c99e62339d97effbe16a1bba42d45 (patch)
treef73e885bd86466de5588e68d2521455fc60db5d8 /units/machines.target
parent8fa844dccff70824ff063bfe5f409c47f5699d73 (diff)
downloadsystemd-6a140df0048c99e62339d97effbe16a1bba42d45.tar.gz
units: rework systemd-nspawn@.service unit
- Unescape instance name so that we can take almost anything as instance name. - Introduce "machines.target" which consists of all enabled nspawns and can be used to start/stop them altogether - Look for container directory using -M instead of harcoding the path in /var/lib/container
Diffstat (limited to 'units/machines.target')
-rw-r--r--units/machines.target17
1 files changed, 17 insertions, 0 deletions
diff --git a/units/machines.target b/units/machines.target
new file mode 100644
index 0000000000..99618a19f7
--- /dev/null
+++ b/units/machines.target
@@ -0,0 +1,17 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Containers
+Documentation=man:systemd.special(7)
+Requires=basic.target
+Conflicts=rescue.service rescue.target
+After=basic.target rescue.service rescue.target
+Before=multi-user.target
+
+[Install]
+WantedBy=multi-user.target