File: README.systemd

package info (click to toggle)
fetchmail 6.6.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 7,896 kB
  • sloc: ansic: 19,458; sh: 7,133; python: 2,395; perl: 564; yacc: 447; lex: 286; makefile: 261; awk: 124; lisp: 84; exp: 43; sed: 17
file content (23 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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