#!/bin/sh
#
# $FreeBSD: ports/mail/exilog/files/exilog.sh.in,v 1.2 2006/05/19 22:50:37 pav Exp $
#
# PROVIDE: exilog
# REQUIRE: mysql
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable exilog agent:
#
#exilog_enable="YES"
#
# also uncomment  'use_pretty_names' => 'no' in exilog.conf file

. /etc/rc.subr

name=exilog
rcvar=`set_rcvar`

command=/usr/local/sbin/exilog_agent.pl
pidfile=/var/run/exilog.pid
required_files=/usr/local/etc/exilog.conf
command_interpreter=/usr/bin/perl

# read settings, set default values
load_rc_config $name
: ${exilog_enable="NO"}

run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1