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

    Package startup behavior on boot

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    4 Posts 2 Posters 1.5k 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.
    • C
      Cino
      last edited by

      Not sure if this is a bug or how its designed but I noticed that packages are starting up 2 times when I reboot pfsense. Once during the 'Starting Package xxxx…done' then again during the 'Starting /usr/local/etc/rc.d/xxxx.sh...done' phase.

      I only notice this happens to packages if they have a script(xxxx.sh) within /usr/local/rc.d/ folders. Watching my log I see imspector and ntop startup, shutdown, to startup again within 10-15 secs. I dont know if this is an issue or not but thought I would bring it up.

      I have hacked the LCDproc package to get it to work for my M300-LCD case and noticed socket timeout errors, LCDd TCP port already in use, and 4 different copies of lcdproc running(should only be 2 copies) the last time I upgraded to a newer snapshot. I ended up disabling the package within the GUI and created a startup script so it would start correctly and by-pass the way pfsense wants to startup the package.

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

        That's up to the individual package maintainers to control. It runs the .sh scripts and it also syncs the package. If a package tries to start itself both ways, it will try to start twice. The package(s) should be coding around that.

        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
        • C
          Cino
          last edited by

          thanks jimp! This process seems to be fine expect for the LCDproc package. I know this package hasn't been updated for some time now.

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

            If you can make a patch that makes it work better in a proper way, feel free to submit the patch and someone can commit it to the package.

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.