about summary refs log tree commit homepage
path: root/examples/public-inbox-watch.service
blob: abb414695626b3861a4d30ec932d887808c919a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# ==> /etc/systemd/system/public-inbox-watch.service <==

[Unit]
Description = public-inbox Maildir watch
After = spamassassin.service

[Service]
Environment = PI_CONFIG=/home/pi/.public-inbox/config \
PATH=/usr/local/bin:/usr/bin:/bin
ExecStart = /usr/local/bin/public-inbox-watch

StandardOutput = syslog
StandardError = syslog
ExecReload = /bin/kill -HUP $MAINPID
# this user must have read access to Maildirs it watches
User = pi
KillMode = process

[Install]
WantedBy = multi-user.target