Skip to content

Commit

Permalink
make systemd service kill offlineimap as expected
Browse files Browse the repository at this point in the history
Most users expects the daemon to be instantly shut down when using systemd kill.

Signed-off-by: Nicolas Sebrecht <[email protected]>
  • Loading branch information
nicolas33 committed Jul 29, 2016
1 parent 203c28f commit 64b733c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/systemd/offlineimap.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 64b733c

Please sign in to comment.