]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
systemd: Order wpa_supplicant before network.target
authorMike Gilbert <floppym@gentoo.org>
Wed, 12 Aug 2015 14:44:42 +0000 (10:44 -0400)
committerJouni Malinen <j@w1.fi>
Fri, 14 Aug 2015 20:16:14 +0000 (23:16 +0300)
Ordering the units before network.target causes them to be stopped
after network.target on shutdown. This ensures that any network
filesystems will be unmounted before wpa_supplicant is killed.

Adding Wants=network.target ensures that network.target will be included
in the active dependency graph. This is typical of units which are
involved in networking setup functions.

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in
wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in
wpa_supplicant/systemd/wpa_supplicant.service.arg.in
wpa_supplicant/systemd/wpa_supplicant.service.in

index bfdee25dced1598443b478d00c425b196357aad8..03ac5070599598aaa8ed0952cf95d53ba1db9c2f 100644 (file)
@@ -2,6 +2,8 @@
 Description=WPA supplicant daemon (interface- and nl80211 driver-specific version)
 Requires=sys-subsystem-net-devices-%i.device
 After=sys-subsystem-net-devices-%i.device
+Before=network.target
+Wants=network.target
 
 # NetworkManager users will probably want the dbus version instead.
 
index 20ba0ad9a3d0bd579f9e45e282b2de7620295037..c8a744d6e138ad862bf127a337ef7f645c9983e4 100644 (file)
@@ -2,6 +2,8 @@
 Description=WPA supplicant daemon (interface- and wired driver-specific version)
 Requires=sys-subsystem-net-devices-%i.device
 After=sys-subsystem-net-devices-%i.device
+Before=network.target
+Wants=network.target
 
 # NetworkManager users will probably want the dbus version instead.
 
index 10e62bc4bcb6c6558a81c97dc1afb53c9ae9bf02..7788b380c4a29b23a154a99bc75ccbfbed04780e 100644 (file)
@@ -2,6 +2,8 @@
 Description=WPA supplicant daemon (interface-specific version)
 Requires=sys-subsystem-net-devices-%i.device
 After=sys-subsystem-net-devices-%i.device
+Before=network.target
+Wants=network.target
 
 # NetworkManager users will probably want the dbus version instead.
 
index 4351ad8f5f27f9811d5b8acaaa561cf2cad7397c..ea964ce8dce470d40196d607ba6e106d2882c9b9 100644 (file)
@@ -1,5 +1,7 @@
 [Unit]
 Description=WPA supplicant
+Before=network.target
+Wants=network.target
 
 [Service]
 Type=dbus