Use correct (multi-user) target when installing systemd units
The 'network.target' is special (per systemd.special(7)), and is to be brought up indirectly when network is actually configured (i.e. through DHCP or static address settings). Irrelevant of that, all services should be always installed in multi-user.target. [Bug 427]
This commit is contained in:
parent
62a8ea7d01
commit
399ec170e8
4 changed files with 4 additions and 4 deletions
|
@ -10,4 +10,4 @@ Type=simple
|
||||||
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I
|
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
Alias=network.target.wants/wpa_supplicant-nl80211@wlan0.service
|
Alias=multi-user.target.wants/wpa_supplicant-nl80211@wlan0.service
|
||||||
|
|
|
@ -10,4 +10,4 @@ Type=simple
|
||||||
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wired-%I.conf -Dwired -i%I
|
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wired-%I.conf -Dwired -i%I
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
Alias=network.target.wants/wpa_supplicant-wired@wlan0.service
|
Alias=multi-user.target.wants/wpa_supplicant-wired@wlan0.service
|
||||||
|
|
|
@ -7,5 +7,5 @@ BusName=fi.epitest.hostap.WPASupplicant
|
||||||
ExecStart=@BINDIR@/wpa_supplicant -u
|
ExecStart=@BINDIR@/wpa_supplicant -u
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=network.target
|
WantedBy=multi-user.target
|
||||||
Alias=dbus-fi.epitest.hostap.WPASupplicant.service
|
Alias=dbus-fi.epitest.hostap.WPASupplicant.service
|
||||||
|
|
|
@ -10,4 +10,4 @@ Type=simple
|
||||||
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
|
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
Alias=network.target.wants/wpa_supplicant@wlan0.service
|
Alias=multi-user.target.wants/wpa_supplicant@wlan0.service
|
||||||
|
|
Loading…
Reference in a new issue