New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/local/bin/pulledpork_update.sh should check whether it's running interactively or from cron #127

Closed
GoogleCodeExporter opened this Issue Mar 24, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@GoogleCodeExporter

GoogleCodeExporter commented Mar 24, 2015

When running /usr/local/bin/pulledpork_update.sh on a slave sensor (gets its 
rules from a master instead of directly from the Internet), the script waits 5 
minutes for the master to complete its download from the Internet.  This is 
great for running from a cronjob, but not so great if you're running it 
interactively and are trying to get a new ruleset deployed as quickly as 
possible.

Change this:

echo "Sleeping for 5 minutes to allow master time to download new rules."
sleep 5m 

to this:

# Determine if we are running interactively or from cron
        tty -s
        if [ $? -gt 0 ]
        then
                echo "Sleeping for 5 minutes to allow master time to download new rules."
                sleep 5m 
        fi

Original issue reported on code.google.com by doug.bu...@gmail.com on 2 Oct 2011 at 2:45

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

Published:
http://securityonion.blogspot.com/2011/10/security-onion-20111001-now-available.
html

Original comment by doug.bu...@gmail.com on 2 Oct 2011 at 2:58

  • Changed state: Verified
  • Added labels: ****
  • Removed labels: ****

GoogleCodeExporter commented Mar 24, 2015

Published:
http://securityonion.blogspot.com/2011/10/security-onion-20111001-now-available.
html

Original comment by doug.bu...@gmail.com on 2 Oct 2011 at 2:58

  • Changed state: Verified
  • Added labels: ****
  • Removed labels: ****
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment