[Snort-devel] Please remove me from Snort list Thanks

Doug Potter dpotter at ...3087...
Thu Jan 29 13:27:34 EST 2015

Please remove from Snort list.  Can't seem to do this myself.

Doug Potter
mbsPartners Newport Consulting
My LinkedIn Profile
Office: 714-662-1111 x18
Cell:      714-390-6249

-----Original Message-----
From: Josh Kline [mailto:snort-devel at ...3556...] 
Sent: Wednesday, January 28, 2015 8:33 PM
To: snort-devel at lists.sourceforge.net
Subject: [Snort-devel] init script status check always exits zero

It is my understanding that when asked to check status of a service an init
script should exit zero only when the service is running.


The Chef configuration management tool, for example, relies on this behavior
in order to conditionally start a service.
There is a work-around,

Currently `/etc/init.d/snortd status` always exits 0, regardless if snort
daemon is running, because it ignore the return value of the status

I am running version 1: of your snort.x86_64 rpm package.

Applying the following patch fixed the problem for me:

--- snortd.orig 2015-01-29 03:56:04.800894066 +0000
+++ snortd  2015-01-29 03:56:26.381132577 +0000
@@ -140,6 +140,8 @@
         status snort
+        RETVAL=$?
+        exit $RETVAL
         TC=125                          # Trailing context to grep

Thank you for your attention and for your work producing the Snort tool.

Josh Kline

Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Snort-devel mailing list
Snort-devel at lists.sourceforge.net

Please visit http://blog.snort.org for the latest news about Snort!

More information about the Snort-devel mailing list