Merge branch 'bb/systemd-touchups' into next
This commit is contained in:
commit
8df8ea0983
16
contrib/systemd/README.md
Normal file
16
contrib/systemd/README.md
Normal file
@ -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.
|
5
contrib/systemd/mail.target
Normal file
5
contrib/systemd/mail.target
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Mail Target
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
@ -1,11 +1,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Offlineimap Service
|
Description=Offlineimap Service
|
||||||
After=xdg-env.service
|
|
||||||
Requires=xdg-env.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/offlineimap -o -c ${XDG_CONFIG_HOME}/offlineimap/offlineimaprc
|
ExecStart=/usr/bin/offlineimap -o
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=mail.target
|
WantedBy=mail.target
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Offlineimap Service for account %i
|
Description=Offlineimap Service for account %i
|
||||||
After=xdg-env.service
|
|
||||||
Requires=xdg-env.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/offlineimap -o -a %i -c ${XDG_CONFIG_HOME}/offlineimap/offlineimaprc
|
ExecStart=/usr/bin/offlineimap -o -a %i
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=mail.target
|
WantedBy=mail.target
|
||||||
|
Loading…
Reference in New Issue
Block a user