FS#43428 - [spamassassin] 3.4.0 spamd systemd service file contains duplicate/possibly unnecessary option -c

Attached to Project: Arch Linux
Opened by Oli (gryphius) - Tuesday, 13 January 2015, 08:59 GMT
Last edited by Florian Pritz (bluewind) - Monday, 16 February 2015, 10:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

in /usr/lib/systemd/system/spamassassin.service
[...]
ExecStart=/usr/bin/vendor_perl/spamd -d --pidfile /var/run/spamd.pid -c -c -x --virtual-config-dir=/var/lib/spamassassin -u spamd -g spamd

-c ("Create user preferences files") probably shouldn't be there twice - maybe not at all since user preferences are disabled with -x ("Disable user config files") anyways?

Also, I'm not sure virtual-config-dir should be set to /var/lib/spamassassin by default as contents in this directory are possibly overwritten by sa-update?
This task depends upon

Closed by  Florian Pritz (bluewind)
Monday, 16 February 2015, 10:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  spamassassin 3.4.0-4
Comment by Florian Pritz (bluewind) - Monday, 16 February 2015, 10:49 GMT
I probably can't find an ideal set of options for spamd since usage differs based on the actual setup, but I think since it already runs as a dedicated user the whole user_prefs stuff isn't needed anyway so I'll be using "-x -u spamd -g spamd" only. --virtual-config-dir actually doesn't make any sense used in the way it was (it needs a pattern, not a path).

I've also merged some new adjustments from Fedora's service file.

Thanks for the report and sorry it took me so long to deal with it.

Loading...