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

    [Solved] Insert a pause at boot time

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 3 Posters 4.2k 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.
    • L
      lol
      last edited by

      Hello,
      I would delay the start of pfSense few seconds.
      Indeed I use a database for barnyards2 located on another machine (remote), which starts at the same time. It turns out that pfSense is a bit too fast at startup, and thus fails to connect to remote mysql database on startup.

      In my research I found only requests to speed up boot …

      Thank you in advance.

      A free pastbin without advertising…
      French Debian Community's Wiki

      1 Reply Last reply Reply Quote 0
      • L
        lol
        last edited by

        I found a partial answer, but in freebsd …

        Add "set timeout 30" to /etc/boot.conf

        But in pfSense, no /etc/boot.conf
        I found the file /boot/loader.conf that might be appropriate …

        I must add "set timeout 30" or should I simply change ' autoboot_delay="x" ' ?

        A free pastbin without advertising…
        French Debian Community's Wiki

        1 Reply Last reply Reply Quote 0
        • E
          Efonnes
          last edited by

          You could add a sleep to the beginning of /etc/rc.bootup

          Use a search engine and enter the search php sleep to find out exactly what its parameters are (I don't remember offhand whether it uses seconds or milliseconds).

          1 Reply Last reply Reply Quote 0
          • L
            lol
            last edited by

            Hello,
            I finally opted for the extension of autoboot_delay="x" in /boot/loader.conf. I thought it was the simplest, and it works.

            Thank you.

            A free pastbin without advertising…
            French Debian Community's Wiki

            1 Reply Last reply Reply Quote 0
            • W
              wallabybob
              last edited by

              /boot/loader.conf is in danger of being replaced on pfSense firmware upgrades.
              /boot/loader.conf.local is supposed to be preserved across pfSense firmware upgrades.

              1 Reply Last reply Reply Quote 0
              • L
                lol
                last edited by

                Hello,
                @wallabybob:

                /boot/loader.conf is in danger of being replaced on pfSense firmware upgrades.
                /boot/loader.conf.local is supposed to be preserved across pfSense firmware upgrades.

                Thank you for accuracy.

                Since the file /boot/loader.conf.local does not exist, I must create it.
                But is it a priority to /boot/loader.conf ?

                That is, if I autoboot_delay="15" in /boot/loader.conf.local Is it going to be a priority on autoboot_delay="3" is in /boot/loader. conf ?

                A free pastbin without advertising…
                French Debian Community's Wiki

                1 Reply Last reply Reply Quote 0
                • W
                  wallabybob
                  last edited by

                  I expect (but don't know):

                  • /boot/loader.conf is read BEFORE /boot/loader.conf.local

                  • Whatever is in /boot/loader.conf.local overrides /boot/loader.conf

                  I use /boot/loader.conf.local and leave /boot/loader.conf alone.

                  1 Reply Last reply Reply Quote 0
                  • L
                    lol
                    last edited by

                    @wallabybob:

                    I expect (but don't know):

                    • /boot/loader.conf is read BEFORE /boot/loader.conf.local

                    • Whatever is in /boot/loader.conf.local overrides /boot/loader.conf

                    I use /boot/loader.conf.local and leave /boot/loader.conf alone.

                    Thank you very much.
                    Must try, I do not risk much:)

                    A free pastbin without advertising…
                    French Debian Community's Wiki

                    1 Reply Last reply Reply Quote 0
                    • L
                      lol
                      last edited by

                      Hello,
                      @wallabybob:

                      I expect (but don't know):

                      • /boot/loader.conf is read BEFORE /boot/loader.conf.local

                      • Whatever is in /boot/loader.conf.local overrides /boot/loader.conf

                      I use /boot/loader.conf.local and leave /boot/loader.conf alone.

                      I tried, and I confirm : /boot/loader.conf.local overrides /boot/loader.conf

                      Thanks again.

                      A free pastbin without advertising…
                      French Debian Community's Wiki

                      1 Reply Last reply Reply Quote 0
                      • W
                        wallabybob
                        last edited by

                        Thanks for the information.

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