aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-rc-d
blob: 0ae4515802f9de40915819dd27bfb6b9c6f666a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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"