summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt/data/etc
diff options
context:
space:
mode:
authorSimon Rettberg2019-10-28 11:33:02 +0100
committerSimon Rettberg2019-10-28 11:33:02 +0100
commit01f8b005ca8fd211b43fdace4a7c86e1fac5ab3d (patch)
tree6723d2b9c77ce5af25fb4eb899ca89679e89acd2 /core/modules/run-virt/data/etc
parent[vmware-common] Remove any existing usb autoconnect entries (diff)
downloadmltk-01f8b005ca8fd211b43fdace4a7c86e1fac5ab3d.tar.gz
mltk-01f8b005ca8fd211b43fdace4a7c86e1fac5ab3d.tar.xz
mltk-01f8b005ca8fd211b43fdace4a7c86e1fac5ab3d.zip
[run-virt] Make dhcpd its own service
Closes #3540 Closes #3501
Diffstat (limited to 'core/modules/run-virt/data/etc')
l---------core/modules/run-virt/data/etc/systemd/system/graphical.target.wants/run-virt-dhcpd.service1
-rw-r--r--core/modules/run-virt/data/etc/systemd/system/run-virt-dhcpd.service9
2 files changed, 10 insertions, 0 deletions
diff --git a/core/modules/run-virt/data/etc/systemd/system/graphical.target.wants/run-virt-dhcpd.service b/core/modules/run-virt/data/etc/systemd/system/graphical.target.wants/run-virt-dhcpd.service
new file mode 120000
index 00000000..a47d9c0b
--- /dev/null
+++ b/core/modules/run-virt/data/etc/systemd/system/graphical.target.wants/run-virt-dhcpd.service
@@ -0,0 +1 @@
+../run-virt-dhcpd.service \ No newline at end of file
diff --git a/core/modules/run-virt/data/etc/systemd/system/run-virt-dhcpd.service b/core/modules/run-virt/data/etc/systemd/system/run-virt-dhcpd.service
new file mode 100644
index 00000000..7453e85b
--- /dev/null
+++ b/core/modules/run-virt/data/etc/systemd/system/run-virt-dhcpd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=DHCP server for VM NAT network
+Wants=run-virt-env.service
+After=run-virt-env.service
+
+[Service]
+ExecStart=/opt/openslx/sbin/udhcpd -f /opt/openslx/vmchooser/config/udhcpd-nat1.conf
+Restart=on-failure
+RestartSec=3