• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.1k 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 Nov 13, 2010, 1:04 PM Nov 13, 2010, 5:32 AM

    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 Nov 13, 2010, 8:24 AM

      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 Nov 13, 2010, 8:34 AM

        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 Nov 13, 2010, 1:04 PM

          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 Nov 13, 2010, 10:11 PM

            /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 Nov 14, 2010, 6:24 AM

              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 Nov 14, 2010, 12:44 PM

                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 Nov 14, 2010, 4:37 PM

                  @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 Nov 22, 2010, 2:16 PM

                    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 Nov 22, 2010, 9:25 PM

                      Thanks for the information.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        [[user:consent.lead]]
                        [[user:consent.not_received]]