contrib: add systemd configuration files

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-03-22 12:58:56 +01:00
parent 731129396c
commit 2d14f005d7
4 changed files with 40 additions and 0 deletions

View 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

View File

@ -0,0 +1,9 @@
[Unit]
Description=Offlineimap Query Timer
[Timer]
OnUnitInactiveSec=15m
Unit=offlineimap.service
[Install]
WantedBy=mail.target

View 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

View File

@ -0,0 +1,9 @@
[Unit]
Description=Offlineimap Query Timer for account %i
[Timer]
OnUnitInactiveSec=15m
Unit=offlineimap@%i.service
[Install]
WantedBy=mail.target