Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833450 - mail-filter/postgrey-1.37: couldn't unlink "/var/run/postgrey.pid"
Summary: mail-filter/postgrey-1.37: couldn't unlink "/var/run/postgrey.pid"
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-16 03:08 UTC by nic
Modified: 2022-02-16 23:40 UTC (History)
1 user (show)

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


Attachments

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