Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34262 - [postgrey] Use POSTGREY_ADDR in postgrey.service

Attached to Project: Community Packages
Opened by Jochen Keil (jrk) - Monday, 11 March 2013, 19:45 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 15 April 2013, 11:17 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

postgrey.service calls postgrey like this:

ExecStart=/usr/sbin/postgrey --inet=127.0.0.1:10030 \
--group=postgrey --user=postgrey $POSTGREY_OPTS --pidfile=/var/run/postgrey/postgrey.pid \
--greylist-text="${POSTGREY_TEXT}"

In /etc/conf.d/postgrey (which is already defined as environment file) one can define POSTGREY_ADDR.
However, this variable is not used atm, instead the tcp socket is hardcoded.

Additional info:
community/postgrey 1.34-10


Steps to reproduce:
cat /etc/conf.d/postgrey
cat /usr/lib/systemd/system/postgrey.service
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 15 April 2013, 11:17 GMT
Reason for closing:  Not a bug
Comment by Sergej Pupykin (sergej) - Tuesday, 12 March 2013, 13:33 GMT
because of current policy is not using /etc/conf.d, I'll remove it from .service
Comment by Jochen Keil (jrk) - Monday, 15 April 2013, 01:58 GMT
  • Field changed: Percent Complete (100% → 0%)
conf.d is used by the .service files through this line:

EnvironmentFile=-/etc/conf.d/postgrey

The other variables (POSTGREY_OPTS, POSTGREY_TEXT) are used as well in the .service file.

If you want to remove the conf.d file please provide other means for configuring postgrey.
Comment by Sergej Pupykin (sergej) - Monday, 15 April 2013, 11:15 GMT
Just copy .service into /etc/systemd/system/ and modify it as you need.
Comment by Sergej Pupykin (sergej) - Monday, 15 April 2013, 11:17 GMT
Current version of postgrey has no this line:
EnvironmentFile=-/etc/conf.d/postgrey

Moreover I heard that latest systemd allows to override parts of service files using /etc/systemd/. So this is not a bug.

Loading...