diff options
-rw-r--r-- | app-antivirus/clamav/clamav-0.103.0.ebuild | 3 | ||||
-rw-r--r-- | app-antivirus/clamav/files/freshclamd.service-r1 | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/app-antivirus/clamav/clamav-0.103.0.ebuild b/app-antivirus/clamav/clamav-0.103.0.ebuild index f5e3d508cf54..4217bc62b775 100644 --- a/app-antivirus/clamav/clamav-0.103.0.ebuild +++ b/app-antivirus/clamav/clamav-0.103.0.ebuild @@ -129,7 +129,8 @@ src_install() { dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf" systemd_newunit "${FILESDIR}/clamd_at.service" "clamd@.service" systemd_dounit "${FILESDIR}/clamd.service" - systemd_dounit "${FILESDIR}/freshclamd.service" + systemd_newunit "${FILESDIR}/freshclamd.service-r1" \ + "freshclamd.service" fi insinto /etc/logrotate.d diff --git a/app-antivirus/clamav/files/freshclamd.service-r1 b/app-antivirus/clamav/files/freshclamd.service-r1 new file mode 100644 index 000000000000..fa1e0139ddda --- /dev/null +++ b/app-antivirus/clamav/files/freshclamd.service-r1 @@ -0,0 +1,10 @@ +[Unit] +Description=clamav updater + +[Service] +Type=forking +PIDFile=/run/freshclam.pid +ExecStart=/usr/bin/freshclam -d -p /run/freshclam.pid + +[Install] +WantedBy=multi-user.target |