docker-offlineimap/contrib/systemd/offlineimap-oneshot@.service
benutzer193 efd2548f67 systemd: remove unused watchdog functionality
Add restart on failure and increase timeout to kill service.

Signed-off-by: benutzer193 <registerbn@gmail.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2017-06-01 15:32:41 +02:00

16 lines
334 B
Desktop File

[Unit]
Description=Offlineimap Service for account %i (oneshot)
Documentation=man:offlineimap(1)
[Service]
Type=oneshot
ExecStart=/usr/bin/offlineimap -o -a %i -u syslog
# Give 120 seconds for offlineimap to gracefully stop before hard killing it.
TimeoutStopSec=120
Restart=on-failure
RestartSec=60
[Install]
WantedBy=mail.target