Skip to content

Conversation

@holomorph
Copy link

Change the Requires= directive to BindsTo=.  This will cause
wpa_supplicant -i<iface> to terminate if <iface> disappears.

From 399ec170: Use correct (multi-user) target when installing systemd
units [...] all services should always be installed in multi-user.target

These directives are documented in systemd.unit(5)

@Earnestly
Copy link

This would help obviate a lot of issues guiding new users relating to fixing the systemd unit files.

@jmalinen
Copy link
Owner

jmalinen commented Jan 4, 2014

Could you please read the top level CONTRIBUTIONS file and include Signed-hostap: tag in the commit message as described in that file?

@jmalinen
Copy link
Owner

jmalinen commented Jan 4, 2014

Please also describe why it is desirable for wpa_supplicant to exit if the interface disappears. That case can happen, e.g., with Wi-Fi USB dongles and wpa_supplicant detects when such a device is re-inserted and then continues with the existing configuration. If that is forced to exit on interface removal, this use case would be broken.

@holomorph
Copy link
Author

I was not aware of that use case. I just tried what you described with a bonding interface and I agree with you. I will amend the commit.

From 399ec17: Use correct (multi-user) target when installing systemd
units [...] all services should always be installed in multi-user.target

These directives (Alias, WantedBy) are documented in systemd.unit(5)

Signed-hostap: Mark Oteiza <mvoteiza@udel.edu>
@holomorph
Copy link
Author

Thoughts?

@Earnestly
Copy link

Please merge this, the current units are broken.

@boucman
Copy link

boucman commented Nov 11, 2019

This is still broken, and actuallly poses real problems now...

systemd upstream recommands using preset-all for enabling units which will create wrong links. there is an explicit check to avoid that in the WantedBy path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants