Cisco-Talos / clamav

ClamAV - Documentation is here: https://docs.clamav.net
https://www.clamav.net/
GNU General Public License v2.0
4.43k stars 706 forks source link

[Feature Request]: clamav-milter.service #1289

Open Kangie opened 4 months ago

Kangie commented 4 months ago

Describe the bug

In Gentoo Linux we're getting rid of our downstream systemd services in favour of using those generated by the build system, however I can't find one for clamav-milter. It would be ideal if we could drop all of our downstream services and instead focus on maintaining a cohesive set in this repository.

Attachments

Here's our current milter service, I note that most of the upstream varieties are more complex than what we've been traditionally distributing so I expect that there will need to be some changes (and CMake updated to include it).

[Unit]
Description=Milter module for the ClamAV scanner
After=nss-lookup.target network.target
Before=sendmail.service
Before=postfix.service

[Service]
Type=forking
PIDFile=/run/clamav/clamav-milter.pid
ExecStart=/usr/sbin/clamav-milter -c /etc/clamav/clamav-milter.conf

[Install]
WantedBy=multi-user.target