freebsd-ports/security/snortsam/files/snortsam.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

29 lines
552 B
Bash

#!/bin/sh
# $FreeBSD$
# PROVIDE: snortsam
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable snortsam:
#
# snortsam_enable="YES"
#
# # optional Snortsam configuration file:
# snortsam_conf="%%ETCDIR%%/snortsam.conf"
#
# DO NOT CHANGE THE DEFAULT VALUES HERE
#
. /etc/rc.subr
name="snortsam"
rcvar=snortsam_enable
load_rc_config snortsam
# defaults
command="%%PREFIX%%/sbin/snortsam"
snortsam_enable=${snortsam_enable:-"NO"}
snortsam_flags=${snortsam_conf:-"%%ETCDIR%%/snortsam.conf"}
run_rc_command "$1"