#!/bin/bash
cd /etc/chef; chef-client -j run-chef-client.json -o "recipe[img-basic::snort],recipe[img-basic::snort-config]" -z;
# nice /usr/local/bin/oinkmaster.pl -o /etc/snort/rules | /usr/bin/logger -t oinkmaster
# Don't use logger, drop it in a file and have rsyslog pick it up
nice /usr/local/bin/oinkmaster.pl -o /etc/snort/rules >> /var/log/snort/oinkmaster.log

/sbin/service snortd restart
