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/fetchmail.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 contrib/systemd/fetchmail.service (limited to 'contrib/systemd/fetchmail.service') diff --git a/contrib/systemd/fetchmail.service b/contrib/systemd/fetchmail.service new file mode 100644 index 00000000..7e075017 --- /dev/null +++ b/contrib/systemd/fetchmail.service @@ -0,0 +1,11 @@ +[Unit] +Description=Fetchmail Daemon +Documentation=man:fetchmail(1) + +[Service] +ExecStart=fetchmail --nodetach --daemon 300 +ExecStop=fetchmail --quit +Restart=always + +[Install] +WantedBy=default.target -- cgit v1.2.3