#!/bin/sh

# REQUIRE: LOGIN

. /etc/rc.subr

name=bbot
command=/home/build/bbot-bootstrap-freebsd.sh
command_interpreter=/bin/sh

bbot_user=build
bbot_cxx=clang++
bbot_build=/tmp
bbot_environments="/home/$bbot_user/environments"

start_cmd="/usr/sbin/daemon -u $bbot_user -t $name $command --build $bbot_build --environments $bbot_environments $bbot_cxx 2>&1 | /usr/bin/logger -p local1.info"

load_rc_config $name
run_rc_command "$1"