diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-04-17 00:18:33 -0700 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-04-17 00:18:33 -0700 |
commit | 03afdafaab503af22ce5c98ad06b9f6bbc459974 (patch) | |
tree | 73e6ea94d27823d65e3b3547fdcb03b08edb036d /src/etc/rc.reboot | |
parent | 34515250ca726f096071b139fcebd5d18601162a (diff) | |
download | pfsense-03afdafaab503af22ce5c98ad06b9f6bbc459974.zip pfsense-03afdafaab503af22ce5c98ad06b9f6bbc459974.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.
Diffstat (limited to 'src/etc/rc.reboot')
-rwxr-xr-x | src/etc/rc.reboot | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/rc.reboot b/src/etc/rc.reboot index 00169bf..b5ad618 100755 --- a/src/etc/rc.reboot +++ b/src/etc/rc.reboot @@ -24,6 +24,7 @@ DISK_NAME=`/bin/df /var/db/rrd | /usr/bin/tail -1 | /usr/bin/awk '{print $1;}'` DISK_TYPE=`/usr/bin/basename ${DISK_NAME} | /usr/bin/cut -c1-2` # If we are not on a full install, or if the full install wants RAM disks, or if the full install _was_ using RAM disks, but isn't for the next boot... if [ "${PLATFORM}" != "${product}" ] || [ "${USE_MFS_TMPVAR}" = "true" ] || [ "${DISK_TYPE}" = "md" ]; then + /etc/rc.backup_aliastables.sh /etc/rc.backup_rrd.sh /etc/rc.backup_dhcpleases.sh fi |