aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/systemd
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2015-08-12 14:44:42 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-14 20:16:14 (GMT)
commitcda3a40fce55202b5daea697007bf323f38ad1d5 (patch)
treed866f98424c672b52f17c5067c27e1a8600e77f1 /wpa_supplicant/systemd
parent6b86872a7c145b662178a4f3d286af9a09a0ce5f (diff)
downloadhostap-cda3a40fce55202b5daea697007bf323f38ad1d5.zip
hostap-cda3a40fce55202b5daea697007bf323f38ad1d5.tar.gz
hostap-cda3a40fce55202b5daea697007bf323f38ad1d5.tar.bz2
systemd: Order wpa_supplicant before network.target
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>
Diffstat (limited to 'wpa_supplicant/systemd')
-rw-r--r--wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in2
-rw-r--r--wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in2
-rw-r--r--wpa_supplicant/systemd/wpa_supplicant.service.arg.in2
-rw-r--r--wpa_supplicant/systemd/wpa_supplicant.service.in2
4 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in b/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in
index bfdee25..03ac507 100644
--- a/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in
+++ b/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in
@@ -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.
diff --git a/wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in b/wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in
index 20ba0ad..c8a744d 100644
--- a/wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in
+++ b/wpa_supplicant/systemd/wpa_supplicant-wired.service.arg.in
@@ -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.
diff --git a/wpa_supplicant/systemd/wpa_supplicant.service.arg.in b/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
index 10e62bc..7788b38 100644
--- a/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
+++ b/wpa_supplicant/systemd/wpa_supplicant.service.arg.in
@@ -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.
diff --git a/wpa_supplicant/systemd/wpa_supplicant.service.in b/wpa_supplicant/systemd/wpa_supplicant.service.in
index 4351ad8..ea964ce 100644
--- a/wpa_supplicant/systemd/wpa_supplicant.service.in
+++ b/wpa_supplicant/systemd/wpa_supplicant.service.in
@@ -1,5 +1,7 @@
[Unit]
Description=WPA supplicant
+Before=network.target
+Wants=network.target
[Service]
Type=dbus