Message ID | d5f12e0b-25b3-7ad3-a542-63b35dcd8500@svario.it |
---|---|
State | Accepted |
Headers | show |
Series | [RESEND] systemd: Use interface name in description of interface-specific units | expand |
On Mon, Sep 26, 2022 at 11:50:30PM +0200, Gioele Barabucci wrote: > In a system with multiple interfaces, the boot messages as well as the > status information provided by `systemctl` can be confusing without > an immediate way to differentiate between the different interfaces. > > Fix this by adding the interface name to the unit description. Thanks, applied.
diff --git a/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in b/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in index da69a8705..4eab33526 100644 --- a/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in +++ b/wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in @@ -1,5 +1,5 @@ [Unit] -Description=WPA supplicant daemon (interface- and nl80211 driver-specific version) +Description=WPA supplicant daemon (for interface %I using nl80211) Requires=sys-subsystem-net-devices-%i.device After=sys-subsystem-net-devices-%i.device Before=network.target diff --git a/wpa_supplicant/systemd/wpa_supplicant.service.arg.in b/wpa_supplicant/systemd/wpa_supplicant.service.arg.in index 55d2b9c81..b0d610fa8 100644 --- a/wpa_supplicant/systemd/wpa_supplicant.service.arg.in +++ b/wpa_supplicant/systemd/wpa_supplicant.service.arg.in @@ -1,5 +1,5 @@ [Unit] -Description=WPA supplicant daemon (interface-specific version) +Description=WPA supplicant daemon (for interface %I) Requires=sys-subsystem-net-devices-%i.device After=sys-subsystem-net-devices-%i.device Before=network.target
In a system with multiple interfaces, the boot messages as well as the status information provided by `systemctl` can be confusing without an immediate way to differentiate between the different interfaces. Fix this by adding the interface name to the unit description. Signed-off-by: Gioele Barabucci <gioele@svario.it> --- wpa_supplicant/systemd/wpa_supplicant-nl80211.service.arg.in | 2 +- wpa_supplicant/systemd/wpa_supplicant.service.arg.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)