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/"
Summary: mail-filter/postgrey-1.37: couldn't unlink "/var/run/"
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
Depends on:
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: ---


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:

"Most likely the pid file should be in a directory that the user postgrey can modify (such as /var/run/postgrey/ rather than /var/run/, 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/" [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