summaryrefslogtreecommitdiff
path: root/debian/patches/fix-waagent-service.patch
blob: b00ccb047f57988a687699a28af76c46598a14c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/distro/systemd/waagent.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=Windows Azure Linux Agent
-After=network.target
-After=sshd.service
-ConditionFileIsExecutable=/usr/sbin/waagent
-ConditionPathExists=/etc/waagent.conf
-
-[Service]
-Type=simple
-ExecStart=/usr/sbin/waagent -daemon
-
-[Install]
-WantedBy=multi-user.target
--- /dev/null
+++ b/distro/systemd/walinuxagent.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Windows Azure Linux Agent
+After=network-online.target cloud-final.service
+Wants=network-online.target sshd.service sshd-keygen.service cloud-final.service
+ConditionFileIsExecutable=/usr/sbin/waagent
+ConditionPathExists=/etc/waagent.conf
+ConditionVirtualization=microsoft
+
+[Service]
+Type=simple
+ExecStart=/usr/sbin/waagent -daemon
+
+[Install]
+WantedBy=multi-user.target