summaryrefslogtreecommitdiff
path: root/app-antivirus/clamav/files/clamonacc.initd.2
blob: 37b341a0aaeb3549a4f3bc06f10309c5cb921994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 ${CLAMONACC_OPTS}"
command_background=true

depend() {
  # Unlike the milter, the on-access scanner will simply fail to start
  # until clamd is available.
  need clamd
}