gentoo-ebuilds/app-antivirus/clamav/files/clamonacc.initd
Thomas Raschbacher f870534c48
app-antivirus/clamav: fixed mode on .initd files
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Thomas Raschbacher <lordvan@gentoo.org>
2021-10-16 17:52:27 +02:00

18 lines
437 B
Text

#!/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
}