Use basic logger (since systemd picks up stdout)
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>
This commit is contained in:
parent
8bbfca9016
commit
a242a07582
@ -4,8 +4,8 @@ Documentation=man:offlineimap(1)
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/offlineimap -o -u syslog
|
||||
# Give 120 seconds for offlineimap to gracefully stop before hard killing it.
|
||||
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
|
||||
|
@ -4,7 +4,7 @@ Documentation=man:offlineimap(1)
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/offlineimap -o -a %i -u syslog
|
||||
ExecStart=/usr/bin/offlineimap -o -a %i -u basic
|
||||
# Give 120 seconds for offlineimap to gracefully stop before hard killing it.
|
||||
TimeoutStopSec=120
|
||||
Restart=on-failure
|
||||
|
@ -3,7 +3,7 @@ Description=Offlineimap Service
|
||||
Documentation=man:offlineimap(1)
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/offlineimap -u syslog
|
||||
ExecStart=/usr/bin/offlineimap -u basic
|
||||
Restart=on-failure
|
||||
RestartSec=60
|
||||
|
||||
|
@ -3,7 +3,7 @@ Description=Offlineimap Service for account %i
|
||||
Documentation=man:offlineimap(1)
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/offlineimap -a %i -u syslog
|
||||
ExecStart=/usr/bin/offlineimap -a %i -u basic
|
||||
Restart=on-failure
|
||||
RestartSec=60
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user