Commit Graph

469 Commits

Author SHA1 Message Date
Adam Gibson
dcafc71242 Don't use pfsense name in comment 2014-07-11 18:22:56 -03:00
Adam Gibson
76fce373ea Use $product instead of pfSense when logging the version to syslog 2014-07-11 18:22:56 -03:00
Adam Gibson
4982e61e1c Log pfsense version to syslog after bootup 2014-07-11 18:22:56 -03:00
Renato Botelho
3c72e98470 Stop restoring gettytab.bak since it doesn't exist anymore 2014-07-01 13:35:07 -03:00
Renato Botelho
0ffc4a7bc1 Add a BETA key for PBI signature check, this will be replaced by the final one before RELEASE. Ticket #3365 2014-06-27 11:56:08 -03:00
Renato Botelho
485cc43686 Fix dir name 2014-06-27 11:44:07 -03:00
jim-p
52398a6b56 Bring in proper gmirror support for the GUI and notifications.
Made a general gmirror library to perform various gmirror tasks and get information, using some of the former widget logic to start. Updated widget to use this new code.
Added a Diag > GEOM Mirrors page that displays information about existing mirrors and perform various management tasks. Current actions include rebuilding a drive, forgetting disconnected mirror drives, insert/remove, deactivate/activate, clearing medatada. It's now possible to use the GUI to rebuild a failed mirror by performing a forget, then insert action to replace a missing/dead drive.
Also included is a notification setup. Mirror status is polled every 60 seconds, and if any aspect of the mirror changes, notifications are issues that alert in the GUI and by SMTP, etc.
2014-05-30 14:15:06 -04:00
Renato Botelho
f5813962a2 Sometimes fsck requires a second run, teach rc script to call it more than once when it's necessary 2014-05-05 10:20:26 -03:00
Renato Botelho
2a50fd8ac8 Move clog from /usr to /usr/local 2014-04-28 11:54:22 -03:00
Ermal
302c005e11 Unload the ZFS module if its not in use to not consume uselss memory 2014-04-17 20:19:29 +00:00
Ermal
05dd0c3246 Use the FreeBSD script for ldconfig to catch all libs 2014-04-14 15:13:43 +00:00
Ermal
e61f548f2c Get rid of embedded platform. Its time to GC this 2014-04-14 13:06:28 +00:00
jim-p
291e0a1c88 Remove TRIM_set and TRIM_unset support. This method isn't very elegant and isn't necessary in the long run. It's better handled in the installer stage and not after the fact. 2014-03-31 10:42:41 -04:00
Chris Buechler
9c3b8c6edb fix typo 2014-03-14 20:12:34 -05:00
jim-p
c7a3356e6b Add a setting to allow the user to specify the clog file size so more (or less) entries may be kept in the raw logs. Retain previous default size values if the user has not specified a preferred size. Files can only be resized when initialized, so provide a "Reset All Logs" button as well to force clear all logs and set them up at the new size. 2013-12-26 15:27:40 -05:00
Renato Botelho
5551d818ee Remove /var/run/booting early to be consistent with $g['booting'] 2013-12-24 13:04:13 -02:00
Ermal
1590947b56 Call all php scripts in bootup with fcgicli. For rc.bootup only the part needing input needs to be abstracted 2013-12-15 19:11:15 +00:00
Ermal
4aea91d808 Switch to php-fpm for lighty and check_reload_status will use it. Step by step will migrate the other calls 2013-12-14 19:20:55 +00:00
Renato Botelho
5aa68a55a6 Fix #3113, fix multiple english spell errors s/seperet/separat/ 2013-07-28 10:31:14 -03:00
rbgarga
1a8b561c11 Merge pull request #608 from evansus/master
Merge commit to correct debugging issue
2013-04-30 09:58:01 -07:00
Evan Susarret
b030743597 correct debug issue
Accidentally changed this from executing the zfs command to echoing the
expected command in previous commits.
This had been set while debugging a better command to set ZFSROOT
variable.
2013-04-30 11:53:26 -04:00
rbgarga
0d0cda1879 Merge pull request #602 from evansus/patch-1
ZFSROOT not hardcoded to zpool or dataset 'tank'
2013-04-30 08:32:48 -07:00
Ermal
ac62a50d9b Do not force the check to avoid garbling filesystems. Also be specific to check / filesystem and /cf on nano platform since the others will be checked on php code 2013-04-29 08:46:10 +00:00
Evan Susarret
c56caf594b Use 'zfs mount' to get ZFSROOT dataset
using just zfs, grep, and cut, with a simple regexp
2013-04-28 06:43:17 -04:00
Evan Susarret
98304a9268 ZFSROOT not hardcoded to zpool or dataset 'tank'
For ZFS root readonly case, the WHEREISROOT variable was grep-ing for 'tank', expecting a zpool with that name.

A workaround of naming a dataset 'tank', for example, 'sys/ROOT/tank' or 'sys/tank/pfSense' is compatible, however this shouldn't be hardcoded in.

My proposed change replaces WHEREISROOT with ZFSROOT using awk. I noticed awk is used elsewhere in this script. However it is still simple code that is not resilient against unexpected circumstances, let alone failure.
2013-04-24 06:18:21 -03:00
jim-p
b6a63312b1 Don't try to make /var/run a RAM disk if /var is already a RAM disk. 2013-04-08 13:34:14 -04:00
Renato Botelho
730790dd97 Only check tunefs status when it's necessary, it avoids errors on iso boot. Fixes #2932 2013-04-05 15:25:42 -03:00
jim-p
efc0e29abc Move tmp/var init to just after mount of /cf so that the sizing works properly on NanoBSD. Fix input validation for sizes. Add note about needing a reboot to apply the settings. 2013-03-12 13:59:40 -04:00
jim-p
e92e83d4e2 Add the ability for full installs to optionally use RAM disks for /tmp and /var, and to allow selecting a size for /tmp and /var RAM disks on both Full installs and NanoBSD.
I think I caught most of the edge cases for transitioning into and out of RAM disk mode, and preserving data across reboots as is done on NanoBSD (RRD, DHCP leases, pkg/pbi info).
2013-03-11 22:16:18 -04:00
jim-p
990fa101b6 Add a means to force a fsck (on rare occasions the fs is not marked dirty, but still needs fsck run to fix errors) 2013-02-02 21:36:39 -05:00
jim-p
2085c6de5d Add a manual way for someone to set TRIM if they really want it. touch /root/TRIM_set and reboot to set, touch /root/TRIM_unset to clear.
Have to reboot after setting the tunefs flag or when mount is run, it clears any changes. No way to do it on the fly.
2013-02-02 21:30:31 -05:00
Ermal
24450773ae Cleanup the php session data. 2012-12-06 15:55:17 +00:00
Ermal
080b4ce1b5 Create these dirs earlier rather than later to avoid the errors reported on http://forum.pfsense.org/index.php/topic,55998.0.html 2012-11-22 09:17:36 +00:00
Ermal
7d3be92f49 Honor /var/run path specified in globals.inc. Probably this needs a bit better handling 2012-11-20 16:42:35 +00:00
Ermal
775130e706 Remove openvpn setups since they do not belong here. Also check before removing newsyslog.conf 2012-11-20 16:34:37 +00:00
Ermal
4b1497d02c Remove sasyncd related code from rc 2012-11-20 16:26:37 +00:00
Ermal
12aeb58f1b Remove newsyslog.conf seems its responsible for overrideing ppp.log and gives warnings on bootup 2012-11-20 16:26:06 +00:00
Ermal
9e9bc51c32 Remove all previous configurations stored on /var/etc during a bootup to avoid confusion 2012-11-20 16:22:17 +00:00
smos
2f8782fe42 More validation for ejecting CDrom devices for 3G sticks, needs extra manufacturers. Less typos in variable names also helps a lot. 2012-05-26 09:28:42 +02:00
smos
793d3c961d Attempt to Eject the CD device on 3G sticks for Huawei and ZTE devices. 2012-05-20 20:01:39 +02:00
jim-p
e0c45357b2 Move routing (radvd, routed, ospf, bgp) to its own log since these daemons can be really spammy at times. 2012-05-01 16:00:10 -04:00
Phil Davis
152c18f002 Store PBIs in /root/var/db/pbi so they persist across reboots.
Keep the existing code for old-style PKG packages in case users on 2.1 are doing anything with PKG packages by hand. In theory all proper package installs on pfSense 2.1 (FreeBSD 8.3) should use PBIs.
2012-04-18 12:14:27 +05:45
smos
e0977fed0f Move some of the log file tabs around.
Add seperate tabs for dnsmasq,unbound as well as gateways.
2012-03-29 12:20:03 +02:00
Warren Baker
71bdd22613 Rather make use of grep -c than all these pipes 2012-03-13 15:00:58 +02:00
Ermal
973b2663e4 Simplify this code a little and make it easily extendible. 2012-03-12 10:55:26 +00:00
Ermal
06fd1952d3 check for presense of file before trying to exec it 2012-03-12 10:34:29 +00:00
Ermal
e8197e56f3 Do not wipe logs on reboot on full install 2012-03-12 10:32:57 +00:00
jim-p
92ac3b3d45 Add a small script to disable APM on ATA drives if they claim to support it. Leaving this on will kill drives long-term, especially laptop drives, by generating excessive Load Cycles.
The APM bit set will persist until the drive is power cycled, so it's necessary to run on each boot to be sure.
2012-01-30 16:24:58 -05:00
jim-p
b3e15d1ba9 Add missing s 2011-09-30 20:04:34 -04:00
jim-p
689eaa4dc6 Move hostapd to its own log and tab, so it stops spamming the system log. 2011-09-30 19:57:43 -04:00