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:
Michael Biebl
2016-06-02 17:58:35 +02:00
committed by Thomas Haller
parent aa04e04c83
commit c8199b7de0
2 changed files with 2 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ Before=network.target
[Service]
Type=oneshot
ExecStart=@bindir@/nm-online -s -q --timeout=30
RemainAfterExit=yes
[Install]
WantedBy=network.target

View File

@@ -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