modoboa-installer
modoboa-installer copied to clipboard
clamd@amavisd service definition contains duplicate [Install] section
Impacted versions
- Distribution: Centos
- Codename: Centos 7
- Arch: 64 Bits
- Database: MySQL
Steps to reproduce
Just install using the installer, then look at
/etc/systemd/system/multi-user.target.wants/[email protected]
file.
This is what you will see:
[Unit]
Description = clamd scanner (%i) daemon
Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/
After = syslog.target nss-lookup.target network.target
[Service]
Type = forking
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf
# Reload the database
ExecReload=/bin/kill -USR2 $MAINPID
Restart = on-failure
TimeoutStartSec=420
[Install]
WantedBy = multi-user.target
[Install]
WantedBy=multi-user.target
Where one of the two [Install]
sections is either redundant or a plain error and should be commented out / removed.