aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-rc-d
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-02 12:25:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-02 12:25:57 +0200
commit22c2f91d54fa3c61f0947c5cd2732517358a0914 (patch)
tree1ac6cfef2baffa9f9a325098b439361b28a3a968 /etc/bootstrap/bbot-rc-d
parent7882d3f3ee9d2605e53e755b19351c7097e3fb7c (diff)
Add FreeBSD rc.d script
Diffstat (limited to 'etc/bootstrap/bbot-rc-d')
-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"