summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.bootup
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-04-17 00:18:33 -0700
committerStephen Beaver <sbeaver@netgate.com>2016-04-18 11:42:11 -0400
commitbf1a013f15732ee3210e814ad0bfa23d3a7ba1eb (patch)
tree1e711be3b58032dd28fdc117e5b28ea48cb10a1e /src/etc/rc.bootup
parent0e9cb2ab4ee0f7e5958f249a962569d6f5ef417e (diff)
downloadpfsense-bf1a013f15732ee3210e814ad0bfa23d3a7ba1eb.zip
pfsense-bf1a013f15732ee3210e814ad0bfa23d3a7ba1eb.tar.gz
Alias Tables RAM Disk Store
If ramdisk is enabled keep a copy of the alias tables to restore at boot time. Otherwise unpredictable behavior may occur due to some aliases not being available when the firewall rules load. Because alias tables are typically somewhat static, the following strategies are employed to keep write cycles to a minimum for SSD and flash drive type devices friendliness. 1) Back up during reboot/shutdown only if a backup copy of the alias table does not already exists. This is typically during the reboot when ramdisk is first enabled. 2) Update the backup copy only when the alias table is updated with a new download, typically 1 or more days, as configured in the firewall alias. (cherry picked from commit 03afdafaab503af22ce5c98ad06b9f6bbc459974)
Diffstat (limited to 'src/etc/rc.bootup')
-rwxr-xr-xsrc/etc/rc.bootup3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/rc.bootup b/src/etc/rc.bootup
index 5ddc69d..ce93acd 100755
--- a/src/etc/rc.bootup
+++ b/src/etc/rc.bootup
@@ -230,6 +230,9 @@ interfaces_loopback_configure();
/* start syslogd */
system_syslogd_start();
+/* restore alias tables */
+restore_aliastables();
+
echo "Starting Secure Shell Services...";
send_event("service reload sshd");
echo "done.\n";
OpenPOWER on IntegriCloud