From 9c2981915fceb7641a855b7fc30d92d1ac146318 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 22 Mar 2015 14:52:44 -0400 Subject: [PATCH] systemd: add documentation and a sample mail.target Signed-off-by: Ben Boeckel Signed-off-by: Nicolas Sebrecht --- contrib/systemd/README.md | 16 ++++++++++++++++ contrib/systemd/mail.target | 5 +++++ 2 files changed, 21 insertions(+) create mode 100644 contrib/systemd/README.md create mode 100644 contrib/systemd/mail.target diff --git a/contrib/systemd/README.md b/contrib/systemd/README.md new file mode 100644 index 0000000..5ae31e4 --- /dev/null +++ b/contrib/systemd/README.md @@ -0,0 +1,16 @@ +Systemd units +============= + +These unit files are meant to be used in the user session. You may drop them +into `${XDG_DATA_HOME}/systemd/user` followed by `systemctl --user +daemon-reload` to have systemd aware of the unit files. + +These files are meant to be triggered either manually using `systemctl --user +start offlineimap.service` or by enabling the timer unit using `systemctl +--user enable offlineimap.timer`. Additionally, specific accounts may be +triggered by using `offlineimap@myaccount.timer` or +`offlineimap@myaccount.service`. + +These unit files are installed as being enabled via a `mail.target` unit which +is intended to be a catch-all for mail-related unit files. A simple +`mail.target` file is also provided. diff --git a/contrib/systemd/mail.target b/contrib/systemd/mail.target new file mode 100644 index 0000000..5a408b2 --- /dev/null +++ b/contrib/systemd/mail.target @@ -0,0 +1,5 @@ +[Unit] +Description=Mail Target + +[Install] +WantedBy=default.target