From 64b733c190f08804b456a14f414d595c3c7a4e3f Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Sat, 16 Jul 2016 17:04:52 +0200 Subject: [PATCH] make systemd service kill offlineimap as expected Most users expects the daemon to be instantly shut down when using systemd kill. Signed-off-by: Nicolas Sebrecht --- contrib/systemd/offlineimap.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/systemd/offlineimap.service b/contrib/systemd/offlineimap.service index 8b77bc4..56319bf 100644 --- a/contrib/systemd/offlineimap.service +++ b/contrib/systemd/offlineimap.service @@ -4,6 +4,8 @@ Description=Offlineimap Service [Service] Type=oneshot ExecStart=/usr/bin/offlineimap -o -u syslog +# Give 12 seconds for offlineimap to gracefully stop before hard killing it. +TimeoutStopSec=12 [Install] WantedBy=mail.target