service: increase start timeout of NetworkManager.service

With a large number of interfaces, it can take longer than 45 seconds
before NetworkManager is started (and the D-Bus name acquired). Increase
the start timeout.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1612
This commit is contained in:
Thomas Haller 2023-04-21 19:49:18 +02:00
parent 0cb43c9e42
commit 505356be48
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -16,6 +16,9 @@ Restart=on-failure
# NM doesn't want systemd to kill its children for it
KillMode=process
# With a huge number of interfaces, starting can take a long time.
TimeoutStartSec=600
# CAP_DAC_OVERRIDE: required to open /run/openvswitch/db.sock socket.
CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE CAP_KILL CAP_SYS_CHROOT