diff options
author | robiscool <robrob2626@yahoo.com> | 2009-11-18 23:19:46 -0800 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-11-18 23:19:46 -0800 |
commit | f0277174966666e88e8d8d5157bbfecaec61d851 (patch) | |
tree | 125a1f1a68ec0dc6a7a7310de031b31875c42a66 | |
parent | e0ba7a328e0a006baaab004ecdcfd2b30d1dd4d6 (diff) | |
download | pfsense-packages-f0277174966666e88e8d8d5157bbfecaec61d851.tar.gz pfsense-packages-f0277174966666e88e8d8d5157bbfecaec61d851.tar.bz2 pfsense-packages-f0277174966666e88e8d8d5157bbfecaec61d851.zip |
snort, full paths on all binaries most be in place for cron
-rwxr-xr-x | config/snort/snort.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index c032a978..00a86c35 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -146,11 +146,11 @@ function sync_package_snort() foreach($snortInterfaces as $snortIf) { $start .= "sleep 4\n"; - $start .= "snort -c /usr/local/etc/snort/snort.conf -l /var/log/snort -D -i {$snortIf} -q\n"; + $start .= "/usr/local/bin/snort -c /usr/local/etc/snort/snort.conf -l /var/log/snort -D -i {$snortIf} -q\n"; /* define snortbarnyardlog_chk */ $snortbarnyardlog_info_chk = $config['installedpackages']['snortadvanced']['config'][0]['snortbarnyardlog']; if ($snortbarnyardlog_info_chk == on) - $start .= "\nsleep 4;barnyard2 -c /usr/local/etc/barnyard2.conf -d /var/log/snort -f snort.u2 -w /usr/local/etc/snort/barnyard2.waldo -D -q\n"; + $start .= "\nsleep 4;/usr/local/bin/barnyard2 -c /usr/local/etc/barnyard2.conf -d /var/log/snort -f snort.u2 -w /usr/local/etc/snort/barnyard2.waldo -D -q\n"; } $check_if_snort_runs = "\n\tif [ \"`ls -A /usr/local/etc/snort/rules`\" ] ; then\n\techo \"rules exist\"\n\telse\n\techo \"rules DONT exist\"\n\texit 2\n\tfi \n\n\tif [ \"`pgrep -x snort`\" = \"\" ] ; then\n\t/bin/rm /tmp/snort.sh.pid\n\tfi \n\n\tif [ \"`pgrep -x snort`\" != \"\" ] ; then\n\tlogger -p daemon.info -i -t SnortStartup \"Snort already running...\"\n\t/usr/local/bin/php -f /usr/local/pkg/pf/snort_dynamic_ip_reload.php\n\texit 1\n\tfi\n\n"; $if_snort_pid = "\nif ls /tmp/snort.sh.pid > /dev/null\nthen\n echo \"snort.sh is running\"\n exit 0\nelse\n echo \"snort.sh is not running\"\nfi\n"; |