-
-
Notifications
You must be signed in to change notification settings - Fork 756
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
Automated backups as explained in documentation overwrites SYSTEMD_WANTS #8641
Comments
…her than overwrite fixes borgbackup#8641 In the example, setting SYSTEMD_WANTS instead of appending may prevent other autostart services attached by earlier udev rules from launching. This commit changes = to += to fix this behavior.
…her than overwrite fixes borgbackup#8641 In the example, setting SYSTEMD_WANTS instead of appending may prevent other autostart services attached by earlier udev rules from launching. This commit changes = to += to fix this behavior.
Is that the case? The docs state that the value is ADDED: https://www.freedesktop.org/software/systemd/man/latest/systemd.device.html#SYSTEMD_WANTS= |
I was curious because the doc does say that it is added, so I ran a test: add another udev rule with higher priority ( Output of
With
So it appears that SYSTEMD_WANTS is in fact overridden when using "=" and the documentation is wrong or at least misleading. I think the intention might have been to say that the contents of SYSTEMD_WANTS are added but only after all rules have been processed. In that process, SYSTEMD_WANTS can be overridden by other rules. Just to be sure, I have also verified that the test-a.service is not called in the first example. |
In the documentation for setting up automated backups, the service to autostart is defined by
ENV{SYSTEMD_WANTS}=
instead ofENV{SYSTEMD_WANTS}+=
. This will overwrite other autostart services attached by earlier udev rules.The text was updated successfully, but these errors were encountered: