Skip to content

Commit 1de3632

Browse files
committed
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 <[email protected]>
1 parent aeb46ab commit 1de3632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/vdirsyncer.service

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ Documentation=https://vdirsyncer.readthedocs.org/
44

55
[Service]
66
ExecStart=/usr/bin/vdirsyncer sync
7-
Type=oneshot
7+
RuntimeMaxSec=30s
8+
Restart=on-failure

0 commit comments

Comments
 (0)