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

Bug 833450

Summary: mail-filter/postgrey-1.37: couldn't unlink "/var/run/postgrey.pid"
Product: Gentoo Linux Reporter: nic <nic>
Component: Current packagesAssignee: Sam James <sam>
Status: UNCONFIRMED ---    
Severity: normal CC: hydrapolic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description nic 2022-02-16 03:08:46 UTC
When stopping postgrey, the daemon logs the following warning.

This issue is referenced under debian bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=756813

"Most likely the pid file should be in a directory that the user postgrey can modify (such as /var/run/postgrey/postgrey.pid) rather than /var/run/postgrey.pid, since /var/run is not writable by postgrey."

Reproducible: Always

Actual Results:  
/etc/init.d/postgrey stop

mail.warning postgrey[]: Couldn't unlink "/var/run/postgrey.pid" [Permission denied]




I confirmed the warnings clear with the following adjustments, However, this is not persistent as init.d needs to be updated to dynamically create the new dir.

mkdir /var/run/postgrey
chown postgrey:postgrey /var/run/postgrey

POSTGREY_PID="/var/run/postgrey/postgrey.pid"