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
|