mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-08 11:15:52 +00:00
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>
This commit is contained in:
parent
aeb46ab5a9
commit
1de3632620
1 changed files with 2 additions and 1 deletions
|
|
@ -4,4 +4,5 @@ Documentation=https://vdirsyncer.readthedocs.org/
|
|||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/vdirsyncer sync
|
||||
Type=oneshot
|
||||
RuntimeMaxSec=30s
|
||||
Restart=on-failure
|
||||
|
|
|
|||
Loading…
Reference in a new issue