Skip to contentSkip to conversation

tools/hotplug: xendomains.service depends on network

PATCH In review Olaf Hering 2 participants 2 messages Dec 9, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/hotplug: xendomains.service depends on network

Starting domains during boot will most likely require network for the local bridge and it may need access to remote filesystems. Add ordering tags to systemd service file.

Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Wei Liu <[email protected]>

---

This should go into 4.5 to avoid failures if xendomains is scheduled before remote mounts are fully available.

 tools/hotplug/Linux/systemd/xendomains.service.in | 2 ++
 1 file changed, 2 insertions(+)
tools/hotplug/Linux/systemd/xendomains.service.in +2 -0
index 9962671..66e2065 100644
@@ -2,6 +2,8 @@
 Description=Xendomains - start and stop guests on boot and shutdown
 Requires=proc-xen.mount xenstored.service
 After=proc-xen.mount xenstored.service xenconsoled.service xen-init-dom0.service
+After=network-online.target
+After=remote-fs.target
 ConditionPathExists=/proc/xen/capabilities
 
 [Service]
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Olaf Hering

Starting domains during boot will most likely require network for the local bridge and it may need access to remote filesystems. Add ordering tags to systemd service file.

Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Quoted 21 lines

---

This should go into 4.5 to avoid failures if xendomains is scheduled before remote mounts are fully available.

 tools/hotplug/Linux/systemd/xendomains.service.in | 2 ++
 1 file changed, 2 insertions(+)
tools/hotplug/Linux/systemd/xendomains.service.in +2 -0
index 9962671..66e2065 100644
@@ -2,6 +2,8 @@
 Description=Xendomains - start and stop guests on boot and shutdown
 Requires=proc-xen.mount xenstored.service
 After=proc-xen.mount xenstored.service xenconsoled.service xen-init-dom0.service
+After=network-online.target
+After=remote-fs.target
 ConditionPathExists=/proc/xen/capabilities
 
 [Service]