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

The "StartLimitIntervalSec" and "StartLimitBurst" directives should be
in the [Unit] section instead of the [Service] one.

Fixes: 927cff9f17 ('cloud-setup: allow bigger restart bursts')
This commit is contained in:
Beniamino Galvani
2024-09-09 15:12:39 +02:00
committed by Íñigo Huguet
parent 2896c5a38b
commit a531458456

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