Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72286 - freshclam can not create pid file /var/run/
Summary: freshclam can not create pid file /var/run/
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Antivirus Team
Depends on:
Reported: 2004-11-23 15:32 UTC by Ortwin Glueck
Modified: 2005-06-21 15:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Ortwin Glueck 2004-11-23 15:32:02 UTC
The log shows:

ERROR: Can't save PID to file /var/run/ 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 (

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/

Expected Results:  
create the /var/run/
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.