17 lines
325 B
Plaintext
17 lines
325 B
Plaintext
|
#!/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
|
||
|
}
|