aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-rc-d
blob: bbde1529d3ddcc9d2fa2ab007c29944bd8ea9fa7 (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 --cxx $bbot_cxx --build $bbot_build --environments $bbot_environments 2>&1 | /usr/bin/logger -p local1.info"

load_rc_config $name
run_rc_command "$1"