RE: [leaf-devel] Question about startup script

2003-08-01 Thread Tony
Thanks Tom,

I feel like a complete fool.  I looked and looked and was sure it was
something a little more obscure than that.

Sorry to waste the bandwidth

Thanks again Tom

Tony



> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Tom Eastep
> Sent: Thursday, July 31, 2003 10:35 PM
> To: Tony
> Cc: LEAF-Dev
> Subject: Re: [leaf-devel] Question about startup script
>
>
> On Thu, 31 Jul 2003, Tony wrote:
>
> >
> > The script is as follows:
> >
>
> You have to decide whether the binary is /usr/sbin/snort or
> /usr/local/sbin/snort -- in your script, you seem to flip a coin each time
> that you refer to the binary and write one path name or the other.
>
> -Tom
> --
> Tom Eastep\ Shorewall - iptables made easy
> Shoreline, \ http://shorewall.net
> Washington USA  \ [EMAIL PROTECTED]
>
>
> ---
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072
303_01/01

___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01

___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel


Re: [leaf-devel] Question about startup script

2003-07-31 Thread Tom Eastep
On Thu, 31 Jul 2003, Tony wrote:

>
> The script is as follows:
>

You have to decide whether the binary is /usr/sbin/snort or
/usr/local/sbin/snort -- in your script, you seem to flip a coin each time
that you refer to the binary and write one path name or the other.

-Tom
--
Tom Eastep\ Shorewall - iptables made easy
Shoreline, \ http://shorewall.net
Washington USA  \ [EMAIL PROTECTED]


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01

___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel


[leaf-devel] Question about startup script

2003-07-31 Thread Tony
Good Evening,

I have been hacking around and have managed to compile the latest Snort
(v2.0.1) under the virtual Usermode Linux using the GlibC 2.0.7.  All is
well and it runs much better than the v1.8 that's floating around.

I have one problem.  I had to include the init.d script from v1.8 to get it
running via "svi snort start"  It was working this morning, and I was
messing around with chown and chgrp to get the proper owner (root) for the
binaries and rules, and now the script doesn't work.

Hell if I know why.  I can start it using the same command line the script
uses, but when I fire off the script, it returns a prompt with no feedback
positive or negative, and doesn't start or stop the program.

The script is as follows:


#! /bin/sh

# /etc/init.d/snort: start/stop snort daemon

RCDLINKS="2,S35 3,S10 4,S10 5,S10 0,K05 1,K05 6,K05"

test -x /usr/sbin/snort || exit 0
test -f /usr/local/snort/rules/snort.conf || exit 0

# Configurable options:

case "$1" in
  start)
echo -n "Starting IDS server: snort"
mkdir -p /var/log/snort/log
cd /usr/local/snort/rules
/usr/local/sbin/snort -D -d -c snort.conf -l /var/log/snort/log
echo "."
;;
  stop)
echo -n "Stopping IDS server: snort"
kill -9 `pidof /usr/sbin/snort`
echo "."
;;
  *)
echo "Usage: $0 {start|stop}"
exit 1
esac

exit 0

==

Does anyone see why this would crap out?  I am not knowledgeable enough with
scripting to see what the problem is.

Any feedback would be appreciated.

Thanks

Tony

PS, Once this is thoroughly thrashed, I'm going to submit it for
distribution along with a short How-To get it up and running.



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01

___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel