Xapi service depends on systemd-tmpfiles-setup #5471
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
👋
To give a little bit of context, I had a strange issue after building new RPMs (it was a new version of ZFS) and installing it. It appeared that
systemdreported XAPI has failed. I looked more closely and the reason is because/var/lock/subsysdirectory is not present anymore (and thetouch /var/lock/subsys/xapicommand failed). I didn't know exactly why this directory is not there but after discussing with several people it appears that it should be created bysystemd-tmpfiles-setup.service. And in my case this service didn't start. To fix the issue one suggestion was to addsystemd-tmpfiles-setup.serviceto beRequires+Afterinxapi.service. I think it makes sense and that is is the right way for fixing the issue but I was surprised that it wasn't already the case, so maybe there is another way to fix this?Regards,