Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501400 - mail-filter/amavisd-new keeps .pid and .lock files in /var/amavis
Summary: mail-filter/amavisd-new keeps .pid and .lock files in /var/amavis
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: keepdir-var-run_lock
  Show dependency tree
 
Reported: 2014-02-15 14:17 UTC by David Heidelberg (okias)
Modified: 2017-07-30 19:21 UTC (History)
1 user (show)

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


Attachments
amavisd-new.ebuild.patch (patch,1.66 KB, patch)
2014-02-15 15:04 UTC, David Heidelberg (okias)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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..