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:

committed by
Nicolas Sebrecht

parent
f3b9963a48
commit
efd2548f67
@ -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
|
||||
|
Reference in New Issue
Block a user