mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-21 00:10:28 +01:00
systemd: use RemainAfterExit=yes for NetworkManager-wait-online.service
RemainAfterExit=yes is typically used for Type=oneshot services.
systemd-networkd-wait-online.service uses it, so we should as well.
See
https://www.freedesktop.org/software/systemd/man/systemd.service.html#RemainAfterExit=
https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=
https://bugzilla.gnome.org/show_bug.cgi?id=767170
(cherry picked from commit c8199b7de0)
This commit is contained in:
parent
1f8ba33d87
commit
f7dba450d8
2 changed files with 2 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ Before=network.target
|
|||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=@bindir@/nm-online -s -q --timeout=30
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ Before=network-online.target
|
|||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=@bindir@/nm-online -s -q --timeout=30
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=network-online.target
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue