From 871d3b8040cefdb8161c3b403e9a80eb1c95f546 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 16 Oct 2012 15:55:49 +0000 Subject: [PATCH] [package] snort: init script enhancements This patch repairs init script for Snort. Current version can start snort, but cannot stop it. Signed-off-by: Jiri Slachta SVN-Revision: 33798 --- net/snort/Makefile | 2 +- net/snort/files/snort.init | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/snort/Makefile b/net/snort/Makefile index eb16cccb93..514e599682 100644 --- a/net/snort/Makefile +++ b/net/snort/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=snort PKG_VERSION:=2.9.2.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://snort.org/dl/snort-current/ diff --git a/net/snort/files/snort.init b/net/snort/files/snort.init index 820ef11c1a..3dd0eac323 100644 --- a/net/snort/files/snort.init +++ b/net/snort/files/snort.init @@ -2,19 +2,19 @@ # Copyright (C) 2012 OpenWrt.org START=99 -APP=snort +APP=snort.bin BIN_FILE="/usr/bin/"$APP PID_FILE="/var/run/"$APP"_"$INTERFACE".pid" -OPTIONS= +OPTIONS="--daq-dir /usr/lib/daq/" DEFAULT=/etc/default/snort LOG_D=/var/log/snort start() { [ -d $LOG_D ] || mkdir -p $LOG_D - start-stop-daemon -S -x $BIN_FILE -p $PID_FILE -b -m -- $OPTIONS + start-stop-daemon -S -x $APP -p $PID_FILE -b -m -- $OPTIONS } stop() { - start-stop-daemon -K -x $BIN_FILE -p $PID_FILE -q + start-stop-daemon -K -x $APP -p $PID_FILE -s TERM rm -rf $PID_FILE } -- 2.30.2