#!/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 "/usr/local/etc/grok.conf" by default.
#
. /etc/rc.subr
name="grok"
rcvar=`set_rcvar`
load_rc_config $name
: ${grok_enable="NO"}
: ${grok_config="/usr/local/etc/grok.conf"}
command_interpreter=/usr/local/bin/perl
command=/usr/local/bin/grok
command_args="-f $grok_config -b -d"
required_files=/usr/local/etc/grok.conf
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1