-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iiod systemd unit won't start with only hwmon devices #1194
Comments
Can confirm on Pi 5 / default Raspberry Pi OS - It's a minor tweak to |
@normanr : Can you try this out? This is a patch for the libiio-v0 branch, but you should be able to apply to main as well (with some minor tweaks).
|
all the instructions are " As for cross compile - adding an |
I think this is fixed in main (almost), and on the v0 branch - so this can be closed. |
I think that the
ConditionPathExists
in the systemd service file (permalink) is over restrictive now that hwmod support is enabled by default (#977)I think something like
should allow the service to start if iio or hwmon devices are present. (The pipe symbol (
|
) allows the service to start if any conditions are satisfied, instead of the default where all conditions need to be satisfied - ref)I'm not actually sure if
/sys/class/hwmon
will be missing on a system without hwmon devices (I don't have any test machines without hwmon devices). If it's always present, then the condition should rather be written using a glob, something like the following should be used instead:(of course it could be made so that the extra line is only added if HWMON support is enabled, but I don't know cmake well enough to suggest the syntax for that).
The text was updated successfully, but these errors were encountered: