19 lines
437 B
Plaintext
19 lines
437 B
Plaintext
#!/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
|
|
}
|