Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 320616 Details for
Bug 430322
app-antivirus/clamav initscript: /var/run/clamav creation & clamconf integration
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/usr/portage/app-antivirus/clamav/files/clamd.rc.diff
file_430322.txt (text/plain), 1.98 KB, created by
Valery Kartel
on 2012-08-07 12:59:26 UTC
(
hide
)
Description:
/usr/portage/app-antivirus/clamav/files/clamd.rc.diff
Filename:
MIME Type:
Creator:
Valery Kartel
Created:
2012-08-07 12:59:26 UTC
Size:
1.98 KB
patch
obsolete
>--- clamd.old 2011-12-04 13:51:46.000000000 +0200 >+++ clamd.rc 2012-08-07 15:34:37.000000000 +0300 >@@ -10,14 +10,27 @@ > provide antivirus > } > >-start() { >- local clamd_socket=`awk '$1 == "LocalSocket" { print $2 }' /etc/clamd.conf` >+get_config() { >+ clamconf | \ >+ sed 's/["=]//g' | \ >+ awk "{ if(\$0==\"Config file: $1.conf\")S=1 >+ if(S==1&&\$0==\"\"){print \$3;exit} >+ if(S==1&&\$1~\"^$2\$\"){print \$2;exit} >+ }" >+} > >+start() { >+ local clamd_socket=$(get_config clamd LocalSocket) >+ local clamd_socket_dir=`dirname ${clamd_socket}` > logfix > > if [ "${START_CLAMD}" = "yes" ]; then >- if [ -S "${clamd_socket:-/tmp/clamd}" ]; then >- rm -f ${clamd_socket:-/tmp/clamd} >+ if [ ! -e "${clamd_socket_dir}" ]; then >+ mkdir ${clamd_socket_dir} >+ chown $(get_config clamd User) ${clamd_socket_dir} >+ fi >+ if [ -S "${clamd_socket}" ]; then >+ rm -f ${clamd_socket} > fi > ebegin "Starting clamd" > start-stop-daemon --start --quiet \ >@@ -75,8 +88,8 @@ > if [ "${START_CLAMD}" = "yes" ]; then > # fix clamd log permissions > # (might be clobbered by logrotate or something) >- local logfile=`awk '$1 == "LogFile" { print $2 }' /etc/clamd.conf` >- local clamav_user=`awk '$1 == "User" { print $2 }' /etc/clamd.conf` >+ local logfile=$(get_config clamd LogFile) >+ local clamav_user=$(get_config clamd User) > if [ -n "${logfile}" ] && [ -n "${clamav_user}" ]; then > if [ ! -f "${logfile}" ]; then > touch ${logfile} >@@ -89,8 +102,8 @@ > if [ "${START_FRESHCLAM}" = "yes" ]; then > # fix freshclam log permissions > # (might be clobbered by logrotate or something) >- logfile=`awk '$1 == "UpdateLogFile" { print $2 }' /etc/freshclam.conf` >- local freshclam_user=`awk '$1 == "DatabaseOwner" { print $2 }' /etc/freshclam.conf` >+ local logfile=$(get_config freshclam UpdateLogFile) >+ local freshclam_user=$(get_config freshclam DatabaseOwner) > if [ -n "${logfile}" -a -n "${clamav_user}" ]; then > if [ ! -f "${logfile}" ]; then > touch ${logfile}
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 430322
:
320616
|
320622