summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2020-09-22 11:45:22 -0400
committerMichael Orlitzky <mjo@gentoo.org>2020-09-22 23:23:24 -0400
commit124e3a9de085193aaed33e1394db2c8bdecfcf2f (patch)
tree12c3137afd4a9e9c71b30450e1aa23e3bcc89075 /app-antivirus/clamav/files
parentapp-antivirus/clamav: new logrotate files for v0.103.0. (diff)
downloadgentoo-124e3a9de085193aaed33e1394db2c8bdecfcf2f.tar.gz
gentoo-124e3a9de085193aaed33e1394db2c8bdecfcf2f.tar.bz2
gentoo-124e3a9de085193aaed33e1394db2c8bdecfcf2f.zip
app-antivirus/clamav: update freshclamd.service for v0.103.0.
Our freshclam systemd service was wonky: by default, freshclam when launched as root will drop privileges to the "clamav" user. Since our systemd service is type=forking, it doesn't need to be launched as the unprivileged user. And, since we're specifying a PID file, launching as root means that the PID file directory (now /run) does not need to be writable by the "clamav" user. All fixed in an -r1 of the service. Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'app-antivirus/clamav/files')
-rw-r--r--app-antivirus/clamav/files/freshclamd.service-r110
1 files changed, 10 insertions, 0 deletions
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