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>
This commit is contained in:
benutzer193
2017-06-01 15:29:12 +02:00
committed by Nicolas Sebrecht
parent f3b9963a48
commit efd2548f67
5 changed files with 15 additions and 29 deletions

View File

@ -5,10 +5,10 @@ Documentation=man:offlineimap(1)
[Service]
Type=oneshot
ExecStart=/usr/bin/offlineimap -o -u syslog
# Give 12 seconds for offlineimap to gracefully stop before hard killing it.
TimeoutStopSec=12
#Restart=on-watchdog
#WatchdogSec=300
# Give 120 seconds for offlineimap to gracefully stop before hard killing it.
TimeoutStopSec=120
Restart=on-failure
RestartSec=60
[Install]
WantedBy=mail.target