Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5212 - ClamAV Daemon Stays at "Busy"

Attached to Project: Arch Linux
Opened by Mike McQueen (McQueen) - Saturday, 12 August 2006, 21:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dale Blount (dale)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I installed ClamAV, set "yes" to START_FRESHCLAM and START_CLAMD in /etc/conf.d/clamav (see attached), configured the clamd.conf and freshclam.conf (see attached) files, and then tried to start the clamav daemon. However, the start function will not leave a "Busy" status. The command I used is listed below. If I add the clamav daemon to run at boot in /etc/rc.conf the same thing occurs.

# /etc/rc.d/clamav start

The clamd.log (see below) shows that it has started. If I run KlamAV as a frontend it is able to start the clamav daemon when the program starts, so I do believe the daemon is running properly whether begun manually or with the frontend. The problem is that if I want to use rc.conf to start clamav it hangs during the system boot and won't proceed past "Busy".

+++ Started at Sat Aug 12 15:45:18 2006
clamd daemon 0.88.4 (OS: linux-gnu, ARCH: i386, CPU: i686)
Log file size limited to 2097152 bytes.
Running as user clamav (UID 64, GID 64)
Reading databases from /var/lib/clamav
Protecting against 65219 viruses.
Bound to address 127.0.0.1 on port 3310
Setting connection queue length to 15
Archive: Archived file size limit set to 10485760 bytes.
Archive: Recursion level limit set to 8.
Archive: Files limit set to 1000.
Archive: Compression ratio limit set to 250.
Archive support enabled.
Archive: RAR support disabled.
Portable Executable support enabled.
Mail files support enabled.
OLE2 support enabled.
HTML support enabled.
Self checking every 1800 seconds.
Pid file removed.
Exiting (clean)
--- Stopped at Sat Aug 12 15:45:36 2006

This task depends upon

Closed by  Dale Blount (dale)
Sunday, 13 August 2006, 01:30 GMT
Reason for closing:  Not a bug
Comment by Jan de Groot (JGC) - Saturday, 12 August 2006, 22:18 GMT
# Don't fork into background.
# Default: disabled
Foreground

If you configured clamav to start in the foreground, the rc script will never end, as it will wait until clamav exits. Usually it starts in the background, returning control to the initscript after starting the daemon.
Comment by Mike McQueen (McQueen) - Sunday, 13 August 2006, 00:07 GMT
Thanks very much for the information.
Works great and I learned something new.

Solved.

Loading...