mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 11:40:14 +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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue