summaryrefslogtreecommitdiff
path: root/sysutils/grok/files/grok.sh.in
blob: b5979f1d633bd6e18dc18e43ceca4b51a8b773be (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
#!/bin/sh

# PROVIDE: grok 
# REQUIRE: LOGIN

#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable grok:
# grok_enable (bool):            Set to "NO" by default.
#                                Set it to "YES" to enable grok 
# grok_config (path):            Set to "%%PREFIX%%/etc/grok.conf" by default.
#

. %%RC_SUBR%%

name="grok"
rcvar=`set_rcvar`

load_rc_config $name

: ${grok_enable="NO"}
: ${grok_config="%%PREFIX%%/etc/grok.conf"}

command_interpreter=%%PERL%%
command=%%PREFIX%%/bin/grok
command_args="-f $grok_config -b -d"
required_files=%%PREFIX%%/etc/grok.conf

run_rc_command "$1"