Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198658 Details for
Bug 272963
app-antivirus/clamav should have multiple initscripts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
independent clamd initscript
clamd.rc (text/plain), 1.71 KB, created by
Nathan Phillip Brink (binki) (RETIRED)
on 2009-07-21 03:19:35 UTC
(
hide
)
Description:
independent clamd initscript
Filename:
MIME Type:
Creator:
Nathan Phillip Brink (binki) (RETIRED)
Created:
2009-07-21 03:19:35 UTC
Size:
1.71 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc,v 1.16 2008/02/29 23:46:46 ticho Exp $ > >opts="logfix" > >depend() { > use net > provide antivirus >} > >start() { > local clamd_socket=`awk '$1 == "LocalSocket" { print $2 }' /etc/clamd.conf` > > logfix > > if [ -S "${clamd_socket:-/tmp/clamd}" ]; then > rm -f ${clamd_socket:-/tmp/clamd} > fi > ebegin "Starting clamd" > start-stop-daemon --start --quiet \ > --nicelevel ${CLAMD_NICELEVEL:-0} \ > --exec /usr/sbin/clamd > > local retcode=$? > if [ ${retcode} != 0 ]; then > eend ${retcode} "Failed to start clamd" > return ${retcode}; > fi > > local clamd_socket_wait_count=0 > local clamd_socket_wait_max=10 > local clamd_socket_wait_result=-1 > ebegin "Waiting for clamd to create ${clamd_socket}" > while (( clamd_socket_wait < clamd_socket_wait_max )); do > if [ -S "${clamd_socket:-/tmp/clamd}" ]; then > clamd_socket_wait_result=0 > break > else > echo -n " ." > let clamd_socket_wait++ > sleep 1 > fi > done > echo > eend $clamd_socket_wait_result "Timeout waiting for ${clamd_socket}" >} > >stop() { > ebegin "Stopping clamd" > start-stop-daemon --stop --quiet --exec /usr/sbin/clamd > eend $? "Failed to stop clamd" >} > >logfix() { > # 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` > if [ -n "${logfile}" ] && [ -n "${clamav_user}" ]; then > if [ ! -f "${logfile}" ]; then > touch ${logfile} > fi > chown ${clamav_user} ${logfile} > chmod 640 ${logfile} > fi >}
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 272963
: 198658 |
198660
|
198662