Skip to content
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

[systemd] Add delay.timer #612

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[systemd] Add delay.timer #612

wants to merge 3 commits into from

Conversation

Strit
Copy link

@Strit Strit commented Feb 18, 2025

The current systemd timer triggers to soon in the boot process for network based source and destinations to be available.
See #486
Creating a drop-in timer in /etc/systemd/system/btrbk.timer.d/ with a delay works.

This PR adds a delay.timer unit with a 5 min delay that makes the timer wait for 5 minutes before it runs the backup. This should be more than enough time to make sure any remote source or destination is available to the system. If needed, we can adjust the delay by just changing the OnBootSec=5m line in delay.time.in to something more appropriate.

Should fix #486 .

Add delay.timer file that delays the trigger by 5 minutes.
Add the delay.timer to Makefile and install it to /etc/systemd/system/btrbk.timer.d/ so it's used when the timer is active.
Forgot some variables, so fix those up.
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.

btrbk.timer runs too soon during boot process
1 participant