1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2012 OpenWrt.org
6 BIN_FILE
="/usr/bin/"$APP
7 PID_FILE
="/var/run/"$APP"_"$INTERFACE".pid"
8 OPTIONS
="--daq-dir /usr/lib/daq/"
9 DEFAULT
=/etc
/default
/snort
13 [ -d $LOG_D ] || mkdir
-p $LOG_D
14 start-stop-daemon
-S -x $APP -p $PID_FILE -b -m -- $OPTIONS
18 start-stop-daemon
-K -x $APP -p $PID_FILE -s TERM