I'm reaching out because, since this  commit, powerdns-recursor no longer starts if pdns_recursor_flags rc var is set.
Reproducing the issue should be fairly simple, just set
(or anything of your choice) in /etc/rc.conf and restart the service. Following error message should appear
pdns_recursor not running? (check /var/run/pdns_recursor.pid).
daemon: illegal option -- -
usage: daemon [-cfHrS] [-p child_pidfile] [-P supervisor_pidfile]
[-u user] [-o output_file] [-t title]
[-l syslog_facility] [-s syslog_priority]
[-T syslog_tag] [-m output_mask] [-R restart_delay_secs]
command arguments ...
/usr/local/etc/rc.d/pdns-recursor: WARNING: failed to start pdns_recursor
reverting rc script  removes the error message.
Making the rc.d use /usr/sbin/daemon caused the error you're seeing. Since I dont use the _flags variable myself, I hadn't run into it myself while testing. Sorry about that.
I fixed the script in bug #255842
Created attachment 225026 [details]
Thank you, be aware that any line with "daemon" should be removed, please find attached a working script.
Please close this PR. Taken care of by bug #256530
^Triage: OBE, see PR 256530.