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
commit476f58b3f257dda813b2bc35eda589cef6fbb0b4 (patch)
tree264cd7f61018b4a09251f5b6672b8a1bcdd70f30 /net-analyzer/snort/files
parentAdd akregator to the list of kdepim ebuilds. (diff)
downloadhistorical-476f58b3f257dda813b2bc35eda589cef6fbb0b4.tar.gz
historical-476f58b3f257dda813b2bc35eda589cef6fbb0b4.tar.bz2
historical-476f58b3f257dda813b2bc35eda589cef6fbb0b4.zip
Change to init script to accept CONF
Package-Manager: portage-2.0.51.22-r3
Diffstat (limited to 'net-analyzer/snort/files')
-rw-r--r--net-analyzer/snort/files/snort.rc67
1 files changed, 3 insertions, 4 deletions
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 $?
}