SA Bugzilla – Bug 5137
spamd options - order seems to be important
Last modified: 2022-04-29 03:48:44 UTC
Tried to get spamd to create a pid file. The following order of options did NOT work: /usr/perl5/bin/spamd -u mail -d -r /etc/exim/spamd.pid --syslog-socket=inet & Experimented and found that the following worked: /usr/perl5/bin/spamd -u mail -r /etc/exim/spamd.pid -d --syslog-socket=inet & Surely the order of options should not matter?
Hrm. The order shouldn't matter for options. SA just calls Getopt::Long::GetOptions() to deal with the commandline though, so I don't think there's anything from a SA perspective here if there's misparsing going on. If this is still occurring, I'd try upgrading the Getopt::Long module, and then if that didn't change anything, go debugging in spamd to see if the module is parsing correctly.
close old bug that was never confirmed