# Check if the IDS should be started.
if [ "$ENABLE_IDS" == "on" ]; then
+ # Start the reporter
+ boot_mesg "Starting Intrusion Prevention Reporter..."
+ loadproc -f -p /var/run/suricata/reporter.pid -b /usr/bin/suricata-reporter
+
# Start the IDS.
boot_mesg "Starting Intrusion Detection System..."
loadproc -b /usr/bin/suricata-watcher -c /etc/suricata/suricata.yaml $NFQUEUES
boot_mesg "Stopping Intrusion Detection System..."
killproc -p /var/run/suricata.pid /usr/bin/suricata
+ boot_mesg "Stopping Intrusion Prevention Reporter..."
+ killproc -p /var/run/suricata/reporter.pid /usr/bin/suricata-reporter
+
# Flush firewall chain.
flush_fw_chain
;;
status)
- PIDFILE="/var/run/suricata.pid" statusproc /usr/bin/suricata
+ PIDFILE="/var/run/suricata.pid" statusproc /usr/bin/suricata
+ PIDFILE="/var/run/suricata/reporter.pid" statusproc /usr/bin/suricata-reporter
;;
restart)