Commit graph

12 commits

Author SHA1 Message Date
Hugo Osvaldo Barrera
2b4496fea4 Update linting tools 2025-04-07 18:42:07 +02:00
Hugo Osvaldo Barrera
b50f9def00 Ensure type annotations are backwards compatible
Related: https://github.com/pimutils/todoman/issues/544
2023-10-29 16:04:23 +01:00
rEnr3n
c5f80d1644
Make systemd service restart only once on failure
Fixes https://github.com/pimutils/vdirsyncer/issues/998
2022-08-05 21:28:54 +08:00
Hugo Osvaldo Barrera
3be048be18 Drop macOS plist
This file is now generated by homebrew for mac users. As we have no
macOS devices to maintain our own, we'll just rely on their
implementation.

See: dfd51bebed/Formula/vdirsyncer.rb (L87-L94)
See: https://github.com/pimutils/vdirsyncer/pull/978
2022-06-21 14:16:41 +02:00
Hugo Osvaldo Barrera
e16f83c1c2 Make this bit more readable 2021-07-07 18:46:13 +02:00
Bernhard Reiter
61edfc090e
Adjust codestyle
running flake8, black and reorder-python-imports.
2021-06-28 16:01:21 +02:00
Bernhard Reiter
b3bee77c17
Change license from Apache-2.0 to BSD-3-Clause
to match the license of vdirsyncer
2021-06-28 15:22:56 +02:00
Bernhard Reiter
95bf683771
Add contrib script to resolve conflicts
Asks the user when two iCalender objects conflict during a sync,
which one to take.
2021-06-11 16:50:00 +02:00
Oleksandr Natalenko
f79647b29c contrib/systemd: extend timeout to 3 mins
Some people may have mixes of many servers and/or slow connections,
and we'd rather not break for them.

Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
2020-10-04 22:08:41 +02:00
Oleksandr Natalenko
1de3632620 contrib/systemd: implement service timeout
Sometimes while doing a suspend/resume cycle vdirsyncer can hang in the
middle of sync, and it never bails out afterwards.

Implement a systemd service change that works around this:

* use `simple` (a default) type for `RuntimeMaxSec` to be effective
* actually set `RuntimeMaxSec` to 30 seconds
* trigger service restart on failure

Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
2020-10-04 20:14:59 +02:00
Hugo Osvaldo Barrera
1bf863c615 Add systemd.timer files and a relevant tutorial (#635)
Include a systemd.timer file (the interval can be overridden, as
mentioned in the docs). TBH, I'd suggest downstream packagers of
systemd-based distributions include these files on installation
(activation needs to be done manually anyway).
2017-05-24 22:38:42 +02:00
benjaminfrank
f1821f0786 Initial MacOS X launchd .plist file. (#435) 2016-04-25 21:57:15 +02:00