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

    Best path to save a binary

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 4 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
      slu
      last edited by

      Hi,

      I need a binary to watch my raid controller, where is the best location for it?

      pfSense Gold subscription

      1 Reply Last reply Reply Quote 0
      • D
        dhatz
        last edited by

        Well, you could put them under /usr/local

        Alternatively you could create a package / pbi for those files.

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Under /root/ isn't always a bad place either - it would be easy to forget you left something custom in /usr/local somewhere, but if you keep it in /root/ you could setup the backup package to grab everything from there.

          Also, on NanoBSD, /root/ is preserved during an upgrade, though if you're using RAID I doubt you're using NanoBSD.

          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Ah, that's interesting. I've been putting very small files in /conf in Nano since that is obviously preserved but it always felt wrong.
            One other thing. I thought that kernel modules in /boot/modules were copied across a firmware update in Nano but I recently updated a box and found that not to be the case. Was I wrong?

            Sorry to jump in but it seemed at least related.

            Steve

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              AFAIK we don't copy /boot/modules/ since during an upgrade the old modules are more likely to break something than help (upgrading major versions, broken module could cause a kernel panic and render the system unbootable).

              Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Hmm, yes that seems fairly obvious. I wonder where I picked up that nugget.

                Steve

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