docker-offlineimap/contrib/systemd/offlineimap.service
Nicolas Sebrecht 64b733c190 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 <nicolas.s-dev@laposte.net>
2016-07-30 01:47:25 +02:00

12 lines
234 B
Desktop File

[Unit]
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