Files
WALinuxAgent/init/ubuntu/walinuxagent.service
Scott Moser 54256269d4 walinuxagent.service: adjust Wants and After (#426)
There is no reason for walinuxagent.service to Want
cloud-final.service.  That could cause problems if cloud-init was
disabled.

There is also no reason for it to need to run After cloud-final.
Instead replace that with After of cloud-init.  That will ensure
that cloud-init in its datasource code has an opportunity affect
walinuxagent before it starts.

The need for this is because cloud-init was starting walinux.service
during cloud-init.service, which would cause unresolvable
cyclic dependencies.
2016-09-14 16:57:04 -07:00

24 lines
533 B
Desktop File
Executable File

#
# 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 sshd.service sshd-keygen.service
ConditionFileIsExecutable=/usr/sbin/waagent
ConditionPathExists=/etc/waagent.conf
[Service]
Type=simple
ExecStart=/usr/bin/python3 -u /usr/sbin/waagent -daemon
Restart=always
[Install]
WantedBy=multi-user.target