Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Custom tinydns startup script failing since 2.0RC2

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    5 Posts 2 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      spartacus
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • S
          spartacus
          last edited by

          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)

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            just have to upgrade, it's been fixed so it does execute other scripts in there.

            1 Reply Last reply Reply Quote 0
            • S
              spartacus
              last edited by

              ok, thanks for for help

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.