scottslowe-learning-tools/consul-ansible/consul.conf
Scott Lowe a4dcc4374e Create environment for Consul using Ansible
Create new learning environment for Consul that uses Ansible for
provisioning instead of a shell script.
2016-01-15 14:35:32 -07:00

19 lines
No EOL
336 B
Text

description "Consul server process"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
script
if [ -f "/etc/service/consul" ]; then
. /etc/service/consul
fi
export GOMAXPROCS=`nproc`
exec /usr/local/bin/consul agent \
-config-dir="/etc/consul.d/server" \
${CONSUL_FLAGS} \
>>/var/log/consul.log 2>&1
end script