FreeBSD Bugzilla – Attachment 229584 Details for
Bug 259699
security/clamav: rc-script does not check for existence of /var/run/clamav
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Example PID dir aware-making rc script
clamav-0.104.1,1.diff (text/plain), 763 bytes, created by
O. Hartmann
on 2021-11-18 21:13:15 UTC
(
hide
)
Description:
Example PID dir aware-making rc script
Filename:
MIME Type:
Creator:
O. Hartmann
Created:
2021-11-18 21:13:15 UTC
Size:
763 bytes
patch
obsolete
>diff --git a/security/clamav/files/clamav-clamd.in b/security/clamav/files/clamav-clamd.in >index c6de79538080..b18c40d70f93 100644 >--- a/security/clamav/files/clamav-clamd.in >+++ b/security/clamav/files/clamav-clamd.in >@@ -25,6 +25,9 @@ load_rc_config "$name" > : ${clamav_clamd_enable:=NO} > : ${clamav_clamd_pidfile="%%CLAMAV_CLAMD_PIDFILE%%"} > >+: ${clamav_clamd_uid:=clamav} >+: ${clamav_clamd_gid:=clamav} >+ > command=%%PREFIX%%/sbin/clamd > pidfile=${clamav_clamd_pidfile} > required_dirs=%%DBDIR%% >@@ -41,6 +44,7 @@ clamav_clamd_precmd() > echo "Missing %%DBDIR%%/*.cvd or *.cld files. You must run freshclam first" > exit 1 > fi >+ install -d -o ${clamav_clamd_uid} -g ${clamav_clamd_gid} -m 750 $( dirname ${clamav_clamd_pidfile} ) > } > > 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 259699
:
229584
|
233170
|
236166