Custom tinydns startup script failing since 2.0RC2
-
I am in need of some assistance…
I have a setup where i run pfsense 2.0, with a custom setup of tinydns.
I did not use the package provided by pfsense itself because i needed two instances of tinydns, each binding to a different WAN connection, and it seems the package provided by pfsense deletes my custom settings on every reboot.In RC1 i had a script in the /usr/local/etc/rc.d/ folder, and it exected just fine, because the /etc/rc.packages script executed all *.sh files in the /usr/local/etc/rc.d/ folder.
Today, I updated to RC2 and it seems that the /etc/rc.packages file has changed to only execute script files that are installed through the pfsense web interface.
I am looking for a way to execute this script which sets up both interfaces of tinydns (the script works, that is tested and true...), in a logical place, that won't be overridden by pfsense updates.
I have already ready tried to add the script execution command to several startup scripts (which iknow will be overridden by future updates), but all failed and my tinydns servers were not running.
Any clue as to where i should be adding the line to execute my script would be greatly appreciated.
PS. The migration of setting between pfsense 1.2.3 and 2.0 works really great, except for the IPSec settings, somehow it just doesn't import those...
Many thanks for your suggestions.
-
some fixes in package startup scripts stopped executing any rc.d files that weren't associated with an installed package, that's since been changed
-
cmb, thank you for you quick reply.
I have seen the code of the package rc.d file, and i know why my script doesn't execute anymore.
I am just wondering if there is still a place where i can put the command to execute my script (that preferably will survive future updates)
-
just have to upgrade, it's been fixed so it does execute other scripts in there.
-
ok, thanks for for help