summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Smee <strerror@gentoo.org>2005-11-26 13:57:06 +0000
committerBenjamin Smee <strerror@gentoo.org>2005-11-26 13:57:06 +0000
commitc25a75834031a3a0d8b08a4364563fa3332df7ec (patch)
tree15de5467b8015cc4393b40e5c1e530b12d9eb4dd /net-analyzer/snort
parentAdd akregator to the list of kdepim ebuilds. (diff)
downloadgentoo-2-c25a75834031a3a0d8b08a4364563fa3332df7ec.tar.gz
gentoo-2-c25a75834031a3a0d8b08a4364563fa3332df7ec.tar.bz2
gentoo-2-c25a75834031a3a0d8b08a4364563fa3332df7ec.zip
Change to init script to accept CONF
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'net-analyzer/snort')
-rw-r--r--net-analyzer/snort/ChangeLog5
-rw-r--r--net-analyzer/snort/files/snort.rc67
2 files changed, 7 insertions, 5 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog
index bb3c07780078..0cc928103eed 100644
--- a/net-analyzer/snort/ChangeLog
+++ b/net-analyzer/snort/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-analyzer/snort
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.86 2005/10/19 09:19:49 strerror Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.87 2005/11/26 13:57:06 strerror Exp $
+
+ 26 Nov 2005; Benjamin Smee <strerror@gentoo.org> files/snort.rc6:
+ Change to init script to accept CONF
*snort-2.4.3 (19 Oct 2005)
diff --git a/net-analyzer/snort/files/snort.rc6 b/net-analyzer/snort/files/snort.rc6
index 078b2519459e..ef70d44e5bcd 100644
--- a/net-analyzer/snort/files/snort.rc6
+++ b/net-analyzer/snort/files/snort.rc6
@@ -1,15 +1,15 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/files/snort.rc6,v 1.5 2004/07/14 23:12:11 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/files/snort.rc6,v 1.6 2005/11/26 13:57:06 strerror Exp $
depend() {
need net
}
checkconfig() {
- if [ ! -e /etc/snort/snort.conf ] ; then
- eerror "You need an /etc/snort/snort.conf to run snort"
+ if [ ! -e $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
@@ -26,6 +26,5 @@ start() {
stop() {
ebegin "Stopping snort"
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
- #kill -9 `cat $PIDFILE` 2>&1
eend $?
}