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>
This commit is contained in:
Joshua DeWeese 2019-02-04 15:43:29 -05:00 committed by Jouni Malinen
parent 9bf306f57d
commit fe0429a589
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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