a242a07582
No need to overcomplicate things; systemd grabs all stdout output and logs that. Signed-off-by: Hugo Osvaldo Barrera <hugo@barrera.io> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
15 lines
311 B
Desktop File
15 lines
311 B
Desktop File
[Unit]
|
|
Description=Offlineimap Service (oneshot)
|
|
Documentation=man:offlineimap(1)
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/offlineimap -o -u basic
|
|
# Give 120 seconds for offlineimap to gracefully stop before hard killing it:
|
|
TimeoutStopSec=120
|
|
Restart=on-failure
|
|
RestartSec=60
|
|
|
|
[Install]
|
|
WantedBy=mail.target
|