[Solved] Insert a pause at boot time
-
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.
-
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" ' ?
-
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).
-
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.
-
/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. -
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 ?
-
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 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:) -
-
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.
-
-
Thanks for the information.