aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/systemd/README.systemd
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/systemd/README.systemd')
-rw-r--r--contrib/systemd/README.systemd23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/systemd/README.systemd b/contrib/systemd/README.systemd
new file mode 100644
index 00000000..fd7229a0
--- /dev/null
+++ b/contrib/systemd/README.systemd
@@ -0,0 +1,23 @@
+To run fetchmail as a systemd user service, for an individual user:
+
+(1) Configuration
+
+Set up your .fetchmailrc so that "fetchmail --nodetach" actually
+fetches your mail correctly.
+
+(2) Tell systemd to run it as a service
+
+Allow daemons to keep running after you log out (optional):
+$ sudo loginctl enable-linger $USERNAME
+
+Make the service available:
+$ systemctl --user enable fetchmail.service
+
+Actually turn it on:
+$ systemctl --user start fetchmail.service
+
+Monitor it, to check if it's okay:
+$ systemctl --user status fetchmail.service
+
+Monitor it harder:
+$ journalctl --user -xeu fetchmail.service