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