diff options
author | Benjamin Smee <strerror@gentoo.org> | 2005-11-26 13:57:06 +0000 |
---|---|---|
committer | Benjamin Smee <strerror@gentoo.org> | 2005-11-26 13:57:06 +0000 |
commit | c25a75834031a3a0d8b08a4364563fa3332df7ec (patch) | |
tree | 15de5467b8015cc4393b40e5c1e530b12d9eb4dd /net-analyzer/snort/files | |
parent | Add akregator to the list of kdepim ebuilds. (diff) | |
download | gentoo-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/files')
-rw-r--r-- | net-analyzer/snort/files/snort.rc6 | 7 |
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 $? } |