#!/bin/sh

# PROVIDE: elogd
# REQUIRE: network
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# elogd_enable (bool):   Set to NO by default.
#               Set it to YES to enable doormand.
# elogd_config (path):   Set to /usr/local/etc/elogd.cfg
#               by default.
# elogd_flags (args): See elogd(1) for possible options

. /etc/rc.subr

name="elogd"
rcvar=elogd_enable

command=/usr/local/sbin/${name}
pidfile=/var/run/${name}.pid

load_rc_config $name

: ${elogd_enable="NO"}
: ${elogd_config="/usr/local/etc/elogd.cfg"}

command_args="-D -c $elogd_config -s /usr/local/share/elog/ -f ${pidfile} -d /usr/local/www/elog"

run_rc_command "$1"
