#!/bin/sh # $FreeBSD$ # PROVIDE: snort_agent # REQUIRE: DAEMON # KEYWORD: shutdown # Add the following line to /etc/sguil-sensor/rc.conf to enable snort_agent: # snort_agent_enable (bool): Set to YES to enable snort_agent # Default: NO # snort_agent_conf (str): Sensor_agent configuration file # Default: %%PREFIX%%/etc/%%SGUILDIR%%/snort_agent.conf # . %%RC_SUBR%% name="snort_agent" rcvar=`set_rcvar` command="%%PREFIX%%/bin/%%SGUILDIR%%/snort_agent.tcl" procname="%%PREFIX%%/bin/tclsh8.4" pidfile="/var/run/${name}.pid" check_pidfile="${pidfile} ${procname} /bin/sh" [ -z "$snort_agent_enable" ] && snort_agent_enable="NO" [ -z "$snort_agent_conf" ] && snort_agent_conf="%%PREFIX%%/etc/%%SGUILDIR%%/snort_agent.conf" load_rc_config $name run_rc_command "$1"