#!/bin/sh
#
# $FreeBSD: ports/net/wizd/files/wizd.sh.in,v 1.1 2008/08/14 21:10:10 amdmi3 Exp $
#
# PROVIDE: wizd
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable wizd:
# wizd_enable (bool):		Set it to "YES" to enable wizd.
#				Default is "NO".
# wizd_flags (str):		Flags passed to widz on startup.
#				Default is "".
#

. /etc/rc.subr

name="wizd"
rcvar=${name}_enable

command="/usr/local/bin/$name"
command_args="-d"
required_files="/usr/local/etc/$name.conf"

load_rc_config $name

: ${wizd_enable="NO"}
: ${wizd_flags=""}

run_rc_command "$1"
