diff --git a/contrib/systemd/offlineimap.service b/contrib/systemd/offlineimap.service new file mode 100644 index 0000000..c76a5f9 --- /dev/null +++ b/contrib/systemd/offlineimap.service @@ -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 diff --git a/contrib/systemd/offlineimap.timer b/contrib/systemd/offlineimap.timer new file mode 100644 index 0000000..ef84a3d --- /dev/null +++ b/contrib/systemd/offlineimap.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Offlineimap Query Timer + +[Timer] +OnUnitInactiveSec=15m +Unit=offlineimap.service + +[Install] +WantedBy=mail.target diff --git a/contrib/systemd/offlineimap@.service b/contrib/systemd/offlineimap@.service new file mode 100644 index 0000000..fa1eea0 --- /dev/null +++ b/contrib/systemd/offlineimap@.service @@ -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 diff --git a/contrib/systemd/offlineimap@.timer b/contrib/systemd/offlineimap@.timer new file mode 100644 index 0000000..6cdbac4 --- /dev/null +++ b/contrib/systemd/offlineimap@.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Offlineimap Query Timer for account %i + +[Timer] +OnUnitInactiveSec=15m +Unit=offlineimap@%i.service + +[Install] +WantedBy=mail.target