Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 286379 Details for
Bug 382851
net-analyzer/snort-2.9.1: Version Bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
snort.rc11
snort.rc11 (text/plain), 1.44 KB, created by
Jason Wallace
on 2011-09-13 17:18:58 UTC
(
hide
)
Description:
snort.rc11
Filename:
MIME Type:
Creator:
Jason Wallace
Created:
2011-09-13 17:18:58 UTC
Size:
1.44 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/files/snort.rc10,v 1.1 2010/11/02 18:22:10 patrick Exp $ > >opts="checkconfig reload" > >depend() { > need net > after mysql > after postgresql >} > >checkconfig() { > if [ ! -e ${SNORT_CONF} ] ; then > eerror "You need a configuration file to run snort" > eerror "There is an example config in /etc/snort/snort.conf.distrib" > return 1 > fi >} > >start() { > checkconfig || return 1 > ebegin "Starting snort" > start-stop-daemon --start --quiet --exec /usr/bin/snort \ > -- --nolock-pidfile --pid-path /var/run/snort -D -i ${SNORT_IFACE} \ > -c ${SNORT_CONF} >/dev/null 2>&1 > eend $? >} > >stop() { > ebegin "Stopping snort" > start-stop-daemon --stop --quiet --pidfile /var/run/snort/snort_${SNORT_IFACE}.pid > # Snort needs a few seconds to fully shutdown > sleep 15 > eend $? >} > >reload() { > > local SNORT_PID="`cat /var/run/snort/snort_${SNORT_IFACE}.pid`" > local SNORT_USER="`ps -p ${SNORT_PID} --no-headers -o user`" > > if [ ! -f /var/run/snort/snort_${SNORT_IFACE}.pid ]; then > eerror "Snort isn't running" > return 1 > elif [ ${SNORT_USER} != root ]; then > eerror "Snort must be running as root for reload to work!" > return 1 > else > checkconfig || return 1 > ebegin "Reloading Snort" > start-stop-daemon --signal HUP --pidfile /var/run/snort/snort_${SNORT_IFACE}.pid > fi >} > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 382851
:
286375
|
286377
| 286379 |
286381
|
286461
|
286463