mirror of
https://github.com/clearlinux/WALinuxAgent.git
synced 2026-08-28 13:25:53 +00:00
54256269d4
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.
24 lines
533 B
Desktop File
Executable File
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
|
|
|