blob: c39e5aff408c19bc2c3ab27585b6f8922aa3d7b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
}
|