Replace systemd install Alias with WantedBy

According to the systemd documentation "WantedBy=foo.service in a
service bar.service is mostly equivalent to
Alias=foo.service.wants/bar.service in the same file." However,
this is not really the intended purpose of install Aliases.

Signed-off-by: Joshua DeWeese <jdeweese@hennypenny.com>
master
Joshua DeWeese 5 years ago committed by Jouni Malinen
parent 9bf306f57d
commit fe0429a589

@ -12,4 +12,4 @@ Type=simple
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I
[Install]
Alias=multi-user.target.wants/wpa_supplicant-nl80211@%i.service
WantedBy=multi-user.target

@ -12,4 +12,4 @@ Type=simple
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wired-%I.conf -Dwired -i%I
[Install]
Alias=multi-user.target.wants/wpa_supplicant-wired@%i.service
WantedBy=multi-user.target

@ -12,4 +12,4 @@ Type=simple
ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
[Install]
Alias=multi-user.target.wants/wpa_supplicant@%i.service
WantedBy=multi-user.target

Loading…
Cancel
Save