blob: f625707b171a97faaa1db2a1b7c944f050f1da64 (
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"
command_background=true
depend() {
# Unlike the milter, the on-access scanner will simply fail to start
# until clamd is available.
need clamd
}
|