]> git.pld-linux.org Git - packages/snort.git/blob - snortd
- unicode.map added
[packages/snort.git] / snortd
1 #!/bin/sh
2 #
3 # snortd         Start/Stop the snort IDS daemon.
4 #
5 # chkconfig: 2345 40 60
6 # description:  snort is a lightweight network intrusion detection tool that
7 #               currently detects more than 1100 host and network
8 #               vulnerabilities, portscans, backdoors, and more.
9 #
10 # June 10, 2000 -- Dave Wreski <dave@linuxsecurity.com>
11 #   - initial version
12 #
13 # July 08, 2000 Dave Wreski <dave@guardiandigital.com>
14 #   - added snort user/group
15 #   - support for 1.6.2
16
17 # Source function library.
18 . /etc/rc.d/init.d/functions
19
20 # Specify your network interface here
21 INTERFACE=eth0
22
23 # See how we were called.
24 case "$1" in
25   start)
26         echo -n "Starting snort: "
27         daemon /usr/sbin/snort -u snort -g snort -s -d -D \
28                 -i $INTERFACE -l /var/log/snort -c /etc/snort/rules.base
29         touch /var/lock/subsys/snort
30         echo
31         ;;
32   stop)
33         echo -n "Stopping snort: "
34         killproc snort
35         rm -f /var/lock/subsys/snort
36         echo 
37         ;;
38   restart)
39         $0 stop
40         $0 start
41         ;;
42   status)
43         status snort
44         ;;
45   *)
46         echo "Usage: $0 {start|stop|restart|status}"
47         exit 1
48 esac
49
50 exit 0
This page took 0.083348 seconds and 3 git commands to generate.