#!/bin/sh
#
# $MidnightBSD: mports/mail/dovecot-devel/files/dovecot.sh.in,v 1.1 2008/06/23 19:56:44 laffer1 Exp $
#
# PROVIDE: dovecot
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable dovecot:
#
#dovecot_enable="YES"
#

. /etc/rc.subr

name=dovecot
rcvar=`set_rcvar`

: ${dovecot_enable:="NO"}
command=/usr/local/sbin/${name}
required_files=/usr/local/etc/${name}.conf

load_rc_config ${name}
run_rc_command "$1"
