contrib: add systemd configuration files
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
731129396c
commit
2d14f005d7
11
contrib/systemd/offlineimap.service
Normal file
11
contrib/systemd/offlineimap.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Offlineimap Service
|
||||||
|
After=xdg-env.service
|
||||||
|
Requires=xdg-env.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/offlineimap -o -c ${XDG_CONFIG_HOME}/offlineimap/offlineimaprc
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=mail.target
|
9
contrib/systemd/offlineimap.timer
Normal file
9
contrib/systemd/offlineimap.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Offlineimap Query Timer
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnUnitInactiveSec=15m
|
||||||
|
Unit=offlineimap.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=mail.target
|
11
contrib/systemd/offlineimap@.service
Normal file
11
contrib/systemd/offlineimap@.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Offlineimap Service for account %i
|
||||||
|
After=xdg-env.service
|
||||||
|
Requires=xdg-env.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/offlineimap -o -a %i -c ${XDG_CONFIG_HOME}/offlineimap/offlineimaprc
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=mail.target
|
9
contrib/systemd/offlineimap@.timer
Normal file
9
contrib/systemd/offlineimap@.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Offlineimap Query Timer for account %i
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnUnitInactiveSec=15m
|
||||||
|
Unit=offlineimap@%i.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=mail.target
|
Loading…
Reference in New Issue
Block a user