Create systemd oneshot services

Signed-off-by: benutzer193 <registerbn@gmail.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
benutzer193 2017-03-28 08:19:24 +02:00 committed by Nicolas Sebrecht
parent c8206f24e1
commit bf85746923
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,13 @@
[Unit]
Description=Offlineimap Service (oneshot)
[Service]
Type=oneshot
ExecStart=/usr/bin/offlineimap -o -u syslog
# Give 12 seconds for offlineimap to gracefully stop before hard killing it.
TimeoutStopSec=12
#Restart=on-watchdog
#WatchdogSec=300
[Install]
WantedBy=mail.target

View File

@ -0,0 +1,11 @@
[Unit]
Description=Offlineimap Service for account %i (oneshot)
[Service]
Type=oneshot
ExecStart=/usr/bin/offlineimap -o -a %i -u syslog
#Restart=on-watchdog
#WatchdogSec=300
[Install]
WantedBy=mail.target