Created attachment 202231 [details] nsnotifyd rc I tried nsnotifyd, and could imagine someone would like to run different scripts, for -for example- ins/del/upd. So I played with the rc script that Mark made (see below), and and enabled it for multiple use. Not sure if I will use it myself, but I thought could be useful to others. So, this is more a suggestion that a "problem report". Further I'm not 100% sure if my adaptions are the most adequate, though peeking at other rc scripts I think it's OK.
Can you elaborate more upon the different scripts? You run multiple instances of nsnotifyd so you can do different things depending upon which zones are updated?
Almost; different functions at different port, for example: notify for dom.tld at port 5301 => add.sh notify for dom.tld at port 5302 => xfr.sh notify for dom.tld at port 5303 => del.sh And with those scripts maintain DNS servers with limitations (like NSD that doesn't fully support DDNS, or PowerDNS which also has only partial support). Also each server (Bind, Knot, NSD, Yadifa, PowerDNS) have it's own different remote control commands. This setup would allow to execute commands locally on a secondairy. I have to add that I'm currently using another solution, but I thought it was a useful contribution. However, I haven't tried it's support for metazones. If you think it overcomplicates / rather keep it simple, then just ignore/close this report.
I tried the patch tonight. It did not apply cleanly, so I copy/pasted. When running with existing configurations, I get: [dan@nsnotify:~] $ sudo service nsnotifyd restart Stopping nsnotifyd. Waiting for PIDS: 18077. eval: ${${...}: Bad substitution I have: $ grep nsnotify /etc/rc.conf nsnotifyd_enable="YES" nsnotifyd_flags="-u nsnotifyd -P /var/run/nsnotifyd.pid -4 -a ...." We don't want to break existing installs.
The rc.d script I'm running with, including debugging, is attached. When I run this script, this is the output: $ sudo service nsnotifyd restart /usr/local/etc/rc.d/nsnotifyd nsnotifyd nsnotifyd_enable nsnotifyd_flags exit: Illegal number: stopping That's not right. That's the variable, not the value.
Created attachment 206095 [details] patched rc.d script, with added debugging
Did my patch help you at all?
Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>