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:
parent
c8206f24e1
commit
bf85746923
13
contrib/systemd/offlineimap-oneshot.service
Normal file
13
contrib/systemd/offlineimap-oneshot.service
Normal 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
|
11
contrib/systemd/offlineimap-oneshot@.service
Normal file
11
contrib/systemd/offlineimap-oneshot@.service
Normal 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
|
Loading…
Reference in New Issue
Block a user