Can amavis please include a systemd service?
Many distros are using systemd (such as Debian, Ubuntu, and Fedora) and others are supporting but not necessarily using it by default (Gentoo). Currently, each one of these distributions has to create and distribute their own systemd service for radvd, even though they're all (virtually) identical, with the only differences being inadvertent or unnecessary. One of the goals of systemd is "to unify the boot and service management between distributions with systemd." I think everyone agrees that it's bad if every distribution patched the amavis source... so this situation is also less than ideal. Besides making life easier for distributions and users, upstreaming a systemd service also helps amavis out in another way - it makes things more consistent, which eases maintainability.
Here's the systemd unit I propose, using what's in Gentoo
https://github.com/gentoo/gentoo/blob/master/mail-filter/amavisd-new/files/amavisd.service and Fedora
http://pkgs.fedoraproject.org/cgit/rpms/amavisd-new.git/tree/amavisd.service as a baseline:
----
[Unit]
Description=Amavisd-new is an interface between MTA and content checkers.
Documentation=
https://www.amavis.org/#doc
After=network.target
Wants=cl...@amavisd.service
Wants=postfix.service
Wants=spamassassin.service
[Service]
Type=forking
User=amavis
Group=amavis
RuntimeDirectory=amavisd
PIDFile=/var/run/amavisd/amavisd.pid
ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf
ExecReload=/usr/sbin/amavisd -P /var/run/amavisd/amavisd.pid -c /etc/amavisd/amavisd.conf reload
Restart=on-failure
PrivateTmp=true
PrivateDevices=true
CapabilityBoundingSet=
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target
----
Thanks,
~Craig