fix(setup-dav-sync)!: use systemd timers instead of cron for periodic sync#9
Open
HaseHarald wants to merge 3 commits intoUT-ilities:masterfrom
Open
fix(setup-dav-sync)!: use systemd timers instead of cron for periodic sync#9HaseHarald wants to merge 3 commits intoUT-ilities:masterfrom
HaseHarald wants to merge 3 commits intoUT-ilities:masterfrom
Conversation
… sync In Ubuntu-Touch Focal (20.04) cron is no longer installed by default. It's much more elegant to use templated systemd user-timers anyway. There's multiple benefits to this solution: - Everything can be done in the users home-directory - We don't need to mount the root-filesystem in rw mode any more - We don't need sudo privileges any more - No risky modification of crontabs using sed - No need to set the env-vars for DISPLAY and DBUS_SESSION_BUS_ADDRESS any more BREAKING CHANGE: This does not remove existing cron-jobs that may remain from previous installations. These must be cleared out manually, otherwise synchronization might start in parallel. The effects of this are unknown but potentially not desirable.
Since we no longer use traditional cron-jobs, the documentation should reflect that. Also some more information on known bugs and issues with backwards compatibility of this script should be documented.
This currently only allows one synchronization interval for all configuration files. The interval of the last configuration file wins.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
In Ubuntu Touch Focal (20.04) cron is no longer installed by default. It's much more elegant to use templated systemd user-timers anyway.
There's multiple benefits to this solution:
BREAKING CHANGE: This does not remove existing cron-jobs that may remain from previous installations. These must be cleared out manually, otherwise synchronization might start in parallel. The effects of this are unknown but potentially not desirable.