packages/net/snortsam/files/snortsam.init
florian 054208e419 [package] add snortsam package - plugin for Snort
I would like to introduce you Snortsam, plugin for Snort. This patch was
accidentally superseded due to lack of my explanation (snortsam needs to be
supported by snort - it is supported now). It's in the same state as was
introduced before. Support for snortsam was introduced in Snort in
http://patchwork.openwrt.org/patch/2491/. Current version of Snort (2.9.2.2)
supports Snortsam.

SnortSam is a plugin for Snort, an open-source light-weight Intrusion
Detection System (IDS).

Signed-off-by: Jiri Slachta <slachta@cesnet.cz>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@33791 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-16 15:55:42 +00:00

17 lines
325 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2012 OpenWrt.org
START=99
APP=snortsam
BIN_FILE="/usr/sbin/"$APP
PID_FILE="/var/run/"$APP".pid"
PARAMS="/etc/snortsam.conf"
start() {
start-stop-daemon -S -x $BIN_FILE -p $PID_FILE -b -m -- $PARAMS
}
stop() {
start-stop-daemon -K -x $BIN_FILE -p $PID_FILE -q
rm -rf $PID_FILE
}