aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'etc/bootstrap')
-rw-r--r--etc/bootstrap/bbot-rc-d14
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/bootstrap/bbot-rc-d b/etc/bootstrap/bbot-rc-d
new file mode 100644
index 0000000..7204721
--- /dev/null
+++ b/etc/bootstrap/bbot-rc-d
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# REQUIRE: LOGIN
+
+. /etc/rc.subr
+
+name=bbot
+command=/home/build/bbot-bootstrap.sh
+command_interpreter=/bin/sh
+bbot_user=build
+start_cmd="/usr/sbin/daemon -u $bbot_user -t $name $command 2>&1 | /usr/bin/logger -p local1.info"
+
+load_rc_config $name
+run_rc_command "$1"