diff options
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 +} |