diff options
author | Thomas Raschbacher <lordvan@gentoo.org> | 2021-10-16 14:24:19 +0200 |
---|---|---|
committer | Thomas Raschbacher <lordvan@gentoo.org> | 2021-10-16 14:26:00 +0200 |
commit | 5d5f8b5e7069bae69c6158f83bf3f581f9244a84 (patch) | |
tree | 7855825addaa5cc0dcad53a33d3370239e6cc087 /app-antivirus/clamav/files/clamonacc.initd | |
parent | sci-libs/tensorflow: Fix system protobuf (diff) | |
download | gentoo-5d5f8b5e7069bae69c6158f83bf3f581f9244a84.tar.gz gentoo-5d5f8b5e7069bae69c6158f83bf3f581f9244a84.tar.bz2 gentoo-5d5f8b5e7069bae69c6158f83bf3f581f9244a84.zip |
app-antivirus/clamav: new version (new build system and USE flags)
Closes: https://bugs.gentoo.org/811498
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Thomas Raschbacher <lordvan@gentoo.org>
Diffstat (limited to 'app-antivirus/clamav/files/clamonacc.initd')
-rwxr-xr-x | app-antivirus/clamav/files/clamonacc.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app-antivirus/clamav/files/clamonacc.initd b/app-antivirus/clamav/files/clamonacc.initd new file mode 100755 index 000000000000..f625707b171a --- /dev/null +++ b/app-antivirus/clamav/files/clamonacc.initd @@ -0,0 +1,18 @@ +#!/sbin/openrc-run + +command="/usr/sbin/clamonacc" +pidfile="/run/${RC_SVCNAME}.pid" + +# clamonacc doesn't support a PID file at the moment, so we +# run it in the foreground and let OpenRC background it. +# +# https://bugzilla.clamav.net/show_bug.cgi?id=12595 +# +command_args="--foreground" +command_background=true + +depend() { + # Unlike the milter, the on-access scanner will simply fail to start + # until clamd is available. + need clamd +} |