merge: branch 'bg/nmcs-unit-burst'

cloud-setup: fix placement of directives in the systemd unit

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2030
This commit is contained in:
Íñigo Huguet 2024-09-11 13:49:40 +00:00
commit 70868fb469

View file

@ -4,10 +4,6 @@ Documentation=man:nm-cloud-setup(8)
Before=network-online.target
After=NetworkManager.service
[Service]
Type=oneshot
ExecStart=@libexecdir@/nm-cloud-setup
# The service restart gets triggered from dispatcher script
# (pre-up and dhcp4-change actions), possibly ending up with many
# restart requests at the same time (e.g. on initial daemon startup
@ -19,6 +15,10 @@ ExecStart=@libexecdir@/nm-cloud-setup
StartLimitIntervalSec=1
StartLimitBurst=100
[Service]
Type=oneshot
ExecStart=@libexecdir@/nm-cloud-setup
#Environment=NM_CLOUD_SETUP_LOG=TRACE
# Cloud providers are disabled by default. You need to