blob: ff9655b939a36750762bbc7b3bf9caba25dfc034 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[Unit]
Description=rapid spam filtering system
[Service]
Type=simple
# Replace Pre/Post with RuntimeDirectory once it is available
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -m700 -p /run/rspamd
ExecStartPre=/bin/chown _rspamd:_rspamd /run/rspamd
ExecStart=/usr/bin/rspamd -f -c /etc/rspamd/rspamd.conf
ExecReload=/bin/kill -HUP $MAINPID
ExecStopPost=/bin/rm -r /run/rspamd
WorkingDirectory=/var/lib/rspamd
User=_rspamd
|