FreeBSD Bugzilla – Attachment 232559 Details for
Bug 262653
security/clamav: rc.d script does not allow for alternate database directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
This handles the issue
clamav.rc.d.sh (text/plain), 1.04 KB, created by
Dave Hayes
on 2022-03-18 20:14:18 UTC
(
hide
)
Description:
This handles the issue
Filename:
MIME Type:
Creator:
Dave Hayes
Created:
2022-03-18 20:14:18 UTC
Size:
1.04 KB
patch
obsolete
>#!/bin/sh > ># PROVIDE: clamav_clamd ># REQUIRE: LOGIN ># BEFORE: mail ># KEYWORD: shutdown > ># ># Add the following lines to /etc/rc.conf to enable clamd: ># ># clamav_clamd_enable="YES" ># clamav_clamd_flags="<set as needed>" ># ># See clamd(8) for flags ># > >. /etc/rc.subr > >name=clamav_clamd >rcvar=clamav_clamd_enable > ># read settings, set default values >load_rc_config "$name" > >: ${clamav_clamd_enable:=NO} >: ${clamav_clamd_pidfile="/var/run/clamav/clamd.pid"} >: ${clamav_clamd_db="/var/db/clamav"} > >command=/usr/local/sbin/clamd >pidfile=${clamav_clamd_pidfile} >required_dirs=${clamav_clamd_db} >required_files=/usr/local/etc/clamd.conf > >start_precmd=clamav_clamd_precmd >extra_commands=reload >reload_cmd="/usr/local/bin/clamdscan --reload" > >#clamav .93 won't start without a valid main.c[vl]d file >clamav_clamd_precmd() >{ > if [ ! -f "${clamav_clamd_db}/main.cvd" -a ! -f "${clamav_clamd_db}/main.cld" ];then > echo "Missing ${clamav_clamd_db}/*.cvd or *.cld files. You must run freshclam first" > exit 1 > fi >} > >run_rc_command "$1" >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 262653
: 232559