#!/bin/sh
#

# PROVIDE: zbmux
# REQUIRE: LOGIN
# KEYWORD: shutdown

# Add the following line to /etc/rc.conf to enable `zbmux':
#
#zbmux_enable="YES"
#

. "/etc/rc.subr"

name="zbmux"
rcvar=`set_rcvar`

base="/home/darius/projects/ZigBee"
command="/usr/local/bin/twistd"
command_args="-l $base/$name.log --pidfile=$base/$name.pid -y $base/$name.tac"
pidfile="$base/$name.pid"
required_files="$base/$name.tac"
command_interpreter="/usr/local/bin/python2.5"
zbmux_chdir="$base"

# read configuration and set defaults
load_rc_config "$name"
: ${zbmux_enable="NO"}
: ${zbmux_flags=""}
: ${zbmux_user="darius"}

run_rc_command "$1"
