summaryrefslogtreecommitdiffstats
path: root/remote/modules/run-virt/data/etc
diff options
context:
space:
mode:
authorSimon Rettberg2015-05-15 18:20:05 +0200
committerSimon Rettberg2015-05-15 18:20:05 +0200
commitf778ad0cfa03bd7358efc4b54dff352cfbc0ec19 (patch)
tree1bd27a0980993c579080f086499d724a7cbe594a /remote/modules/run-virt/data/etc
parentMerge branch 'master' of dnbd3:openslx-ng/tm-scripts (diff)
downloadtm-scripts-f778ad0cfa03bd7358efc4b54dff352cfbc0ec19.tar.gz
tm-scripts-f778ad0cfa03bd7358efc4b54dff352cfbc0ec19.tar.xz
tm-scripts-f778ad0cfa03bd7358efc4b54dff352cfbc0ec19.zip
Moved common data files of vmchooser and vmchooser2 to new module called run-virt
Diffstat (limited to 'remote/modules/run-virt/data/etc')
l---------remote/modules/run-virt/data/etc/systemd/system/graphical.target.wants/run-virt-env.service1
-rw-r--r--remote/modules/run-virt/data/etc/systemd/system/mount-vm-store.service10
l---------remote/modules/run-virt/data/etc/systemd/system/network.target.wants/mount-vm-store.service1
-rw-r--r--remote/modules/run-virt/data/etc/systemd/system/run-virt-env.service9
4 files changed, 21 insertions, 0 deletions
diff --git a/remote/modules/run-virt/data/etc/systemd/system/graphical.target.wants/run-virt-env.service b/remote/modules/run-virt/data/etc/systemd/system/graphical.target.wants/run-virt-env.service
new file mode 120000
index 00000000..c47218eb
--- /dev/null
+++ b/remote/modules/run-virt/data/etc/systemd/system/graphical.target.wants/run-virt-env.service
@@ -0,0 +1 @@
+../run-virt-env.service \ No newline at end of file
diff --git a/remote/modules/run-virt/data/etc/systemd/system/mount-vm-store.service b/remote/modules/run-virt/data/etc/systemd/system/mount-vm-store.service
new file mode 100644
index 00000000..ff801963
--- /dev/null
+++ b/remote/modules/run-virt/data/etc/systemd/system/mount-vm-store.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Mount VM store per NFS
+After=network.target
+Requires=network.target
+DefaultDependencies=no
+
+[Service]
+Type=oneshot
+ExecStart=/opt/openslx/scripts/systemd-mount_vm_store
+RemainAfterExit=yes
diff --git a/remote/modules/run-virt/data/etc/systemd/system/network.target.wants/mount-vm-store.service b/remote/modules/run-virt/data/etc/systemd/system/network.target.wants/mount-vm-store.service
new file mode 120000
index 00000000..d6a88c27
--- /dev/null
+++ b/remote/modules/run-virt/data/etc/systemd/system/network.target.wants/mount-vm-store.service
@@ -0,0 +1 @@
+../mount-vm-store.service \ No newline at end of file
diff --git a/remote/modules/run-virt/data/etc/systemd/system/run-virt-env.service b/remote/modules/run-virt/data/etc/systemd/system/run-virt-env.service
new file mode 100644
index 00000000..fee3e1c6
--- /dev/null
+++ b/remote/modules/run-virt/data/etc/systemd/system/run-virt-env.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Sets up the virtualization environment
+Wants=graphical.target
+Before=graphical.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/opt/openslx/scripts/systemd-run_virt_env