Files
ports/sysutils/choria/files/choria-broker.in
Romain Tartière a0311c13ca New port: New sysutils/choria
Choria is a framework for building Control Planes, Orchestration Systems and
Programmable Infrastructure.

This is a daemon and related tools written in Go that hosts services,
autonomous agents and generally provide a secure hosting environment for
callable logic that you can interact with from code.

WWW: https://choria.io/

With hat:	puppet
2020-10-03 03:08:19 +00:00

31 lines
719 B
Bash

#!/bin/sh
#
# PROVIDE: choria_broker
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run the choria broker:
#
# choria_broker_enable (bool): Set it to "YES" to enable the choria broker.
# Default is "NO".
# choria_broker_options: Options to pass to the choria broker
#
. /etc/rc.subr
name="choria_broker"
rcvar=`set_rcvar`
pidfile="/var/run/${name}.pid"
load_rc_config ${name}
: ${choria_broker_enable="NO"}
: ${choria_broker_options="--config=%%PREFIX%%/etc/choria/broker.conf"}
command=/usr/sbin/daemon
procname=%%PREFIX%%/bin/choria
command_args="-p ${pidfile} ${procname} broker run ${choria_broker_options}"
PATH="${PATH}:%%PREFIX%%/bin"
export GODEBUG=x509ignoreCN=0
run_rc_command "$1"