From da52ecef355c3cd57f8575b5c6459879fa3a5f52 Mon Sep 17 00:00:00 2001 From: "Barak A. Pearlmutter" Date: Tue, 23 Nov 2021 10:47:03 +0000 Subject: Add systemd example and instructions. --- contrib/systemd/README.systemd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 contrib/systemd/README.systemd (limited to 'contrib/systemd/README.systemd') 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 -- cgit v1.2.3