Commit Graph

5 Commits (f082af8bf6c438a2616340bbf929d7ca4b22ff38)

Author SHA1 Message Date
Christoph Anton Mitterer eb1d9e4da9 contrib: systemd: btrbk.timer: use default systemd `AccuracySec`
systemd’s `AccuracySec` is mainly there in order to allow it to coalescing
wake-ups for multiple timers.
It’s default of `1min` minute should be enough for this.

Using its `RandomizedDelaySec` in order to spread load from e.g. multiple
sources that would all perform backups to one target, wouldn’t really make much
sense either.
Either, the value would need to be quite large, thereby making backups/snapshots
too wobbly, or it wouldn’t be effective as at least the backups typically take
quite some time.

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2022-11-12 04:59:19 +01:00
Christoph Anton Mitterer c9d95a6302 contrib: systemd: run units only with existing config file
It does not make sense for the timer or the service to be started (the latter
when done so manually) when neither of the two default config files exists.

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2022-11-12 04:55:34 +01:00
Christoph Anton Mitterer 87eeefa0ca contrib: systemd: btrbk.timer: run hourly
btrbk supports hourly backups, so it makes sense for the timer to run hourly,
too.

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2022-11-12 04:45:00 +01:00
Asbjørn Apeland 2d7f5ec5fe contrib: systemd: btrbk.timer: change install target
Using `WantedBy=multi-user.target` makes boot wait for btrbk.service
before it's considered "finished". This can be checked by running
`systemd-analyze` or checking the system log using `journalctl`.

Timers should use the "timers.target" target, see systemd.special(7).
2019-10-27 12:24:00 +01:00
Asbjørn Apeland 16d73b4e5a Makefile: support .in files (use to replace @BINDIR@ in btrbk.service) 2016-07-13 20:56:28 +02:00