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

Bug 501400

Summary: mail-filter/amavisd-new keeps .pid and .lock files in /var/amavis
Product: Gentoo Linux Reporter: David Heidelberg (okias) <david>
Component: Current packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED OBSOLETE    
Severity: normal CC: antivirus
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 332633    
Attachments: amavisd-new.ebuild.patch

Description David Heidelberg (okias) 2014-02-15 14:17:03 UTC
# ls -l /var/amavis/
-rw-r-----  1 amavis amavis     6 Feb 15 15:14 amavisd.pid
srwxrwx---  1 amavis amavis     0 Feb 15 15:14 amavisd.sock

Default settings, these files should be by default placed in /run, because they persist after unexpected reboot

I'd propose place these files in /run/amavis/amavisd.*

Reproducible: Always

Steps to Reproduce:
1. install amavisd-new
2. run
3. crash your computer
Actual Results:  
amavisd refuse to load until these files are removed - thinks it's running

Expected Results:  
Amavisd load correctly, because /run is (by default) placed in tmpfs
Comment 1 David Heidelberg (okias) 2014-02-15 15:04:28 UTC
Created attachment 370492 [details, diff]
amavisd-new.ebuild.patch

This should be enough for start, tested and work file.
Comment 2 David Heidelberg (okias) 2014-02-18 00:23:01 UTC
!)Net::Server: 2014/02/18-01:17:26 Couldn't open pid file "/run/amavis/amavisd.pid" [No such file or directory].\n\n  at line 180 in file /usr/lib64/perl5/vendor_perl/5.16.3/Net/Server.pm

Seems that it can't create directory at start, I'll have to look at it.
Comment 3 David Heidelberg (okias) 2017-07-30 19:21:12 UTC
I replaced amavisd-new setup with RSpamd which works for me very well. No longer interested in amavisd-new..