Hello, I'm reaching out because, since this [1] commit, powerdns-recursor no longer starts if pdns_recursor_flags rc var is set. Reproducing the issue should be fairly simple, just set pdns_recursor_flags="--allow-from=127.0.0.0/8,10.0.0.0/24" (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). Starting pdns_recursor. 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 [1] removes the error message. [1] https://cgit.freebsd.org/ports/commit/dns/powerdns-recursor/files/pdns-recursor.in?id=e5f6c6eee3ac2e99ec07cdb060bc6d19ed898bf1
Hi, 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] rc.d script 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.