Created attachment 219188 [details] patch enabling foreground operation without debug
(In reply to dewayne from comment #0) I've modified milter-regex to provide foreground operation without debug information. milter-regex does offer foreground operation but with extensive debugging information, which isn't desirable. I have provided the patch to the author at daniel@benzedrine.ch on 25th and 13th Oct without reply, so include it here should you wish to use. Used on 12.1S amd64 and 12.2S i386
What is your benefit for running it in foreground?
(In reply to Dirk Meyer from comment #2) The benefit is that the process can be more closely monitored. Using monitoring tools ease tracking (of restart times and some causes), provides more options regarding log files and tighter restart controls. In this regard s6-rc/s6 is excellent. Some of the other processes that I'm currently running in foreground: sendmail, dovecot, isc-dhcpd, isc's named, clamav, squid, samba (smbd,nmbd,winbindd), apache, thttpd, lighttpd, varnishd, ntpd, heimdal (on different boxes), opendkim, spamassassin (spamass-milter, spamd), vsftpd, openvpn, dropbear, openssh, hostapd & openldap's slapd allows a debug level 0 for foreground use). I came across milter-regex, nut and strongswan which are the only three that don't enable a foreground option; though milter-regex & nut do but with debug noise (from a production use perspective). I'll see if I can easily add foreground execution to nut-devel, but strongswan is going to be a challenge ;) Thanks Dirk for your query. :)
A commit references this bug: Author: dinoex Date: Thu Dec 31 12:14:43 UTC 2020 New revision: 559726 URL: https://svnweb.freebsd.org/changeset/ports/559726 Log: - add patch for enabling foreground operation without debug PR: 250708 Submitted by: dewayne@heuristicsystems.com.au Changes: head/mail/milter-regex/Makefile head/mail/milter-regex/files/patch-foreground