Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 72286

Summary: freshclam can not create pid file /var/run/freshclam.pid
Product: Gentoo Linux Reporter: Ortwin Glueck <odi>
Component: Current packagesAssignee: Antivirus Team <antivirus>
Status: VERIFIED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ortwin Glueck 2004-11-23 15:32:02 UTC
The log shows:

ERROR: Can't save PID to file /var/run/freshclam.pid: Permission denied
freshclam daemon 0.80 (OS: linux-gnu, ARCH: i386, CPU: i686)
ClamAV update process started at Tue Nov 23 23:35:27 2004
main.cvd is up to date (version: 28, sigs: 26630, f-level: 3, builder: tomek)
daily.cvd updated (version: 603, sigs: 790, f-level: 3, builder: tkojm)
Database updated (27420 signatures) from db.ch.clamav.net (62.2.177.19).


Reproducible: Always
Steps to Reproduce:
1. configure a log file for freshclam in /etc/conf.d/clamd
2. /etc/init.d/clamd start
3. check log file

Actual Results:  
you will see the above error message
and no /var/run/freshclam.pid

Expected Results:  
create the /var/run/freshclam.pid
no error message

freshclam is running as the clamav user.

The pid file seems a similar treatment like the log file.
It needs to be touched by /etc/init.d/clamd and ownership set to clamav:clamav.

There is no real impact on functionality. But the error message is just not nice.
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2005-05-14 15:54:55 UTC
This is probably fixed in 0.85-r1, where I moved pidfiles to /var/run/clamav owned by clamav:clamav. If not, feel free to reopen.
Comment 2 Ortwin Glueck 2005-06-06 12:28:59 UTC
works in 0.85.1
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2005-06-21 15:33:19 UTC
Changing bug status to CLOSED, so it doesn't clutter up bugzilla queries.