| 1 | [Unit] |
| 2 | Description=Interface between MTA and virus scanner/content filters |
| 3 | Documentation=http://www.ijs.si/software/amavisd/#doc |
| 4 | After=network.target |
| 5 | |
| 6 | [Service] |
| 7 | User=amavis |
| 8 | Group=amavis |
| 9 | RuntimeDirectory=amavis |
| 10 | ExecStart=/usr/sbin/amavisd foreground |
| 11 | ExecReload=/usr/sbin/amavisd reload |
| 12 | ExecStartPre=-/usr/bin/find /var/lib/amavis -maxdepth 1 -name 'amavis-*' -type d -exec rm -rf "{}" \; |
| 13 | ExecStartPre=-/usr/bin/find /var/lib/amavis/tmp -maxdepth 1 -name 'amavis-*' -type d -exec rm -rf "{}" \; |
| 14 | Restart=on-failure |
| 15 | PrivateTmp=true |
| 16 | CapabilityBoundingSet= |
| 17 | ProtectSystem=full |
| 18 | ProtectHome=true |
| 19 | |
| 20 | [Install] |
| 21 | WantedBy=multi-user.target |