freebsd-ports/sysutils/grok/files/grok.sh.in
Beech Rintoul 021a6e7a9d - Update to 20070915
PR:		ports/116420
Submitted by:	Wesley Shields <wxs@atarininja.org> (maintainer)
Approved by:	sat (mentor)
2007-09-21 21:24:58 +00:00

28 lines
622 B
Bash

#!/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"