2015-03-25 20:09:59 +01:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
title: Integrating OfflineIMAP into systemd
|
|
|
|
author: Ben Boeckel
|
|
|
|
date: 2015-03-22
|
2017-06-01 18:46:59 +02:00
|
|
|
contributors: Abdo Roig-Maranges, benutzer193, Hugo Osvaldo Barrera
|
2017-06-01 15:29:12 +02:00
|
|
|
updated: 2017-06-01
|
2015-03-25 20:09:59 +01:00
|
|
|
---
|
2015-03-22 19:52:44 +01:00
|
|
|
|
2015-03-25 20:09:59 +01:00
|
|
|
<!-- This file is copied to the website by script. -->
|
2015-03-22 19:52:44 +01:00
|
|
|
|
|
|
|
|
2015-03-25 20:09:59 +01:00
|
|
|
## Systemd units
|
|
|
|
|
2017-01-27 19:41:47 +01:00
|
|
|
These unit files are meant to be used in the user session. You may drop them
|
|
|
|
into `/etc/systemd/user` or `${XDG_DATA_HOME}/systemd/user` followed by
|
|
|
|
`systemctl --user daemon-reload` to have systemd aware of the unit files.
|
2015-03-25 20:09:59 +01:00
|
|
|
|
2017-01-27 19:41:47 +01:00
|
|
|
These files are meant to be triggered either manually using `systemctl --user
|
|
|
|
start offlineimap.service` or by enabling the timer unit using `systemctl --user
|
2017-06-28 09:51:12 +02:00
|
|
|
enable offlineimap-oneshot.timer`. Additionally, specific accounts may be
|
|
|
|
triggered by using `offlineimap@myaccount.timer` or
|
|
|
|
`offlineimap-oneshot@myaccount.service`.
|
2017-01-27 19:41:47 +01:00
|
|
|
|
2017-06-01 18:10:04 +02:00
|
|
|
If the defaults provided by these units doesn't suit your setup, any of the
|
|
|
|
values may be overridden by using `systemctl --user edit offlineimap.service`.
|
|
|
|
This'll prevent having to copy-and-edit the original file.
|