diff options
author | dsomero <xgizzmo@gmail.com> | 2010-05-21 21:35:55 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-24 16:08:44 -0500 |
commit | b32fe885a51f8ea5cff3c02748da8d2dda6ccf8b (patch) | |
tree | 61b9bf1e4b6fb43ef3193c881bce85ccc4ae3c5f /network/snort/rc.snort | |
parent | b15ff21f368da736ce09b40a46fff93b3765901f (diff) | |
download | slackbuilds-b32fe885a51f8ea5cff3c02748da8d2dda6ccf8b.tar.gz |
network/snort: Removed (download link broken)
Diffstat (limited to 'network/snort/rc.snort')
-rw-r--r-- | network/snort/rc.snort | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/network/snort/rc.snort b/network/snort/rc.snort deleted file mode 100644 index d91941e822..0000000000 --- a/network/snort/rc.snort +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -# Start/stop/restart snort - -# This tell snort which interface to listen on (any for every interface) -IFACE=${IFACE:-any} - -# Make sure this matches your IFACE -PIDFILE=/var/run/snort_$IFACE.pid - -# You probably don't want to change this, but in case you do -LOGDIR="/var/log/snort" - -# Probably not this either -CONF=/etc/snort/snort.conf - -# Start snort: -snort_start() { - CMDLINE="/usr/bin/snort -d -D -i $IFACE" - echo -n "Starting Snort daemon: $CMDLINE" - $CMDLINE --pid-path /var/run --create-pidfile -l $LOGDIR -c $CONF - echo -} - -# Stop snort: -snort_stop() { - echo -n "Stopping Snort daemon ($IFACE)..." - kill $(cat $PIDFILE) - echo - sleep 1 - rm -f $PIDFILE -} - -# Restart snort: -snort_restart() { - snort_stop - sleep 1 - snort_start -} - -case "$1" in -'start') - snort_start - ;; -'stop') - snort_stop - ;; -'restart') - snort_restart - ;; -*) - echo "usage $0 start|stop|restart" -esac - |