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#33323 - [postgrey] Bad variable substitution in service file

Attached to Project: Community Packages
Opened by Thomas Jost (Schnouki) - Monday, 07 January 2013, 17:57 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 09 January 2013, 09:53 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 0
Private No

Details

Description:

The current postgrey.service file starts the postgrey process with the option '--greylist-text="$POSTGREY_TEXT"'. It looks like systemd doesn't replace $POSTGREY_TEXT by its value in that case, causing the process to really be started with '--greylist-text="$POSTGREY_TEXT"' instead of '--greylist-text="Greylisted for %s seconds"'.

This can be fixed by changing it to '--greylist-text="${POSTGREY_TEXT}"' (with braces) in the service file.

Additional info:
* postgrey 1.34-9, systemd 196-2

Steps to reproduce:

# pacman -S postgrey
# systemctl start postgrey.service
# ps ax | grep postgrey
270 ? Ss 0:10 /usr/sbin/postgrey --inet=127.0.0.1:10030 --group=postgrey --user=postgrey --pidfile=/var/run/postgrey/postgrey.pid --greylist-text="$POSTGREY_TEXT"
This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 09 January 2013, 09:53 GMT
Reason for closing:  Fixed

Loading...