mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 18:40:05 +01:00
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:
parent
2896c5a38b
commit
a531458456
1 changed files with 4 additions and 4 deletions
|
|
@ -4,10 +4,6 @@ Documentation=man:nm-cloud-setup(8)
|
||||||
Before=network-online.target
|
Before=network-online.target
|
||||||
After=NetworkManager.service
|
After=NetworkManager.service
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=@libexecdir@/nm-cloud-setup
|
|
||||||
|
|
||||||
# The service restart gets triggered from dispatcher script
|
# The service restart gets triggered from dispatcher script
|
||||||
# (pre-up and dhcp4-change actions), possibly ending up with many
|
# (pre-up and dhcp4-change actions), possibly ending up with many
|
||||||
# restart requests at the same time (e.g. on initial daemon startup
|
# restart requests at the same time (e.g. on initial daemon startup
|
||||||
|
|
@ -19,6 +15,10 @@ ExecStart=@libexecdir@/nm-cloud-setup
|
||||||
StartLimitIntervalSec=1
|
StartLimitIntervalSec=1
|
||||||
StartLimitBurst=100
|
StartLimitBurst=100
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=@libexecdir@/nm-cloud-setup
|
||||||
|
|
||||||
#Environment=NM_CLOUD_SETUP_LOG=TRACE
|
#Environment=NM_CLOUD_SETUP_LOG=TRACE
|
||||||
|
|
||||||
# Cloud providers are disabled by default. You need to
|
# Cloud providers are disabled by default. You need to
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue