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
This commit is contained in:

committed by
Thomas Haller

parent
aa04e04c83
commit
c8199b7de0
@@ -8,6 +8,7 @@ Before=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=@bindir@/nm-online -s -q --timeout=30
|
ExecStart=@bindir@/nm-online -s -q --timeout=30
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=network.target
|
WantedBy=network.target
|
||||||
|
@@ -7,6 +7,7 @@ Before=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=@bindir@/nm-online -s -q --timeout=30
|
ExecStart=@bindir@/nm-online -s -q --timeout=30
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=network-online.target
|
WantedBy=network-online.target
|
||||||
|
Reference in New Issue
Block a user