aboutsummaryrefslogtreecommitdiff
path: root/security/snortsam/files/snortsam.in
blob: bc78d1fc7e4e87e843c3f5e8c7a5d0553a90af87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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"