blob: 3517aeb21ec81eb011bee14429e011c4ea6867e5 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#!/bin/sh
#
# PROVIDE: barnyard
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable barnyard:
# barnyard_enable (bool): Set to YES to enable barnyard
# Default: NO
# barnyard_flags (str): Extra flags passed to barnyard
# Default: -D
# barnyard_conf (str): Barnyard configuration file
# Default: %%PREFIX%%/etc/barnyard.conf
#
# Usage: barnyard [OPTIONS]... (continual mode)
# or: barnyard -o [OPTIONS]... FILES... (batch mode)
# Information Options:
# -h Show this help information
# -? Show this help information
# -V Show version and exit
# -R Display processed configuration and exit
# General Configuration Options:
# -c <file> Use configuration file <file>
# -d <dir> Read spool files from <dir>
# -L <dir> Write output files in <dir>
# -v Increase the verbosity level by 1
# -s <file> Read the sid-msg map from <file>
# -g <file> Read the gen-msg map from <file>
# -p <file> Read the classification map from <file>
# Continual Processing Mode Options:
# -a <dir> Archive processed files to <dir>
# -f <base> Use <base> as the base unified filename
# -n Only process new events
# -w <file> Enable bookmarking using <file>
# -D Run in daemon mode
# -X <file> Use <file> as the pid file
# Batch Processing Mode Options:
# -o Enable batch processing mode
. %%RC_SUBR%%
name="barnyard"
load_rc_config $name
rcvar=`set_rcvar`
# set some defaults
: ${barnyard_enable="NO"}
: ${barnyard_conf="%%PREFIX%%/etc/barnyard.conf"}
: ${barnyard_flags="-D"}
command="%%PREFIX%%/bin/barnyard"
command_args="-c ${barnyard_conf}"
run_rc_command "$1"
|