summaryrefslogtreecommitdiff
path: root/init/debian/walinuxagent.service
diff options
context:
space:
mode:
Diffstat (limited to 'init/debian/walinuxagent.service')
-rwxr-xr-xinit/debian/walinuxagent.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/init/debian/walinuxagent.service b/init/debian/walinuxagent.service
new file mode 100755
index 0000000..0512915
--- /dev/null
+++ b/init/debian/walinuxagent.service
@@ -0,0 +1,23 @@
+#
+# NOTE:
+# This file hosted on WALinuxAgent repository only for reference purposes.
+# Please refer to a recent image to find out the up-to-date systemd unit file.
+#
+
+[Unit]
+Description=Azure Linux Agent
+
+After=network-online.target cloud-init.service
+Wants=network-online.target
+
+ConditionFileIsExecutable=/usr/sbin/waagent
+ConditionPathExists=/etc/waagent.conf
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/python3 -u /usr/sbin/waagent -daemon
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+