aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@pfSense.org>2014-03-25 21:23:38 -0300
committerRenato Botelho <garga@pfSense.org>2014-03-25 21:23:38 -0300
commit13475835caf9ed181e38e486023f63a699fc0285 (patch)
treee5964a86976a2e86acf4ca497c08ab66ac09c04a /config/suricata/suricata.inc
parent9f5f66618e89aa3324bb138a3720f56090d6a143 (diff)
parentf6caa0b6863df8111d34273f2d4b0d3b9d86f9e3 (diff)
downloadpfsense-packages-13475835caf9ed181e38e486023f63a699fc0285.tar.gz
pfsense-packages-13475835caf9ed181e38e486023f63a699fc0285.tar.bz2
pfsense-packages-13475835caf9ed181e38e486023f63a699fc0285.zip
Merge pull request #632 from bmeeks8/master
Suricata 1.4.6 pkg. v0.3-BETA -- bug fixes
Diffstat (limited to 'config/suricata/suricata.inc')
-rw-r--r--config/suricata/suricata.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/suricata/suricata.inc b/config/suricata/suricata.inc
index 7936d41c..b5f5fb56 100644
--- a/config/suricata/suricata.inc
+++ b/config/suricata/suricata.inc
@@ -406,7 +406,7 @@ function suricata_build_list($suricatacfg, $listname = "", $whitelist = false) {
return $valresult;
}
-function suricata_rules_up_install_cron($should_install) {
+function suricata_rules_up_install_cron($should_install=true) {
global $config, $g;
$command = "/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/www/suricata/suricata_check_for_rule_updates.php";
@@ -479,7 +479,7 @@ function suricata_rules_up_install_cron($should_install) {
install_cron_job($command, $should_install, $suricata_rules_up_min, $suricata_rules_up_hr, $suricata_rules_up_mday, $suricata_rules_up_month, $suricata_rules_up_wday, "root");
}
-function suricata_loglimit_install_cron($should_install) {
+function suricata_loglimit_install_cron($should_install=true) {
install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php -f /usr/local/pkg/suricata/suricata_check_cron_misc.inc", $should_install, "*/5");
}
@@ -516,7 +516,7 @@ function sync_suricata_package_config() {
$suricataglob = $config['installedpackages']['suricata']['config'][0];
// setup the log directory size check job if enabled
- suricata_loglimit_install_cron($suricataglob['suricataloglimit'] == 'on' ? true : false);
+ suricata_loglimit_install_cron();
// setup the suricata rules update job if enabled
suricata_rules_up_install_cron($suricataglob['autoruleupdate'] != "never_up" ? true : false);