Re: [Bug 8384] When daemonizing, spamd doesn't rename itself from "perl" if -Debug mode is set (breaks FreeBSD rc.d files)

Patrik Schindler <[email protected]> Sun, 19 Apr 2026 13:35:46 +0200
Newsgroups gmane.mail.spam.spamassassin.devel
Message-ID <[email protected]>
Hello Dan,

Am 19.04.2026 um 10:05 schrieb [email protected]:


> 
> --- Comment #6 from Dan Mahoney <[email protected]> ---
> Okay, thinking about this, the argument for LEAVING the procname unchanged is
> "because people want to see the arguments in ps so that they can restart it"
> 
> Here's an example of what I see in ps under FreeBSD 14.3:
> 
> /usr/local/bin/perl -T -w /usr/local/bin/spamd -D -u spamd -m 53 -x
> --virtual-config-dir=/usr/local/etc/mail/spamassassin/users/dayjob.org/%u -l -i
> ssl:*:784 -i *:783 -A 10.0.0.0/24 -d -r /var/run/spamd/spamd.pid
> 
> ...except that wasn't how I started spamd anyway.  I (or the startup script)
> never typed "perl", I typed "spamd".

Of course. Spamassassin is not a binary being run, but it's interpreted Perl code. The call to Perl is implicit by #!/usr/bin/perl.

:wq! PoC