scottslowe-learning-tools/consul/consul.conf
Scott Lowe b4cc1e3052 Finish consul update
Add more idempotency features to provisioning script. Add Consul configuration file for use with initctl on Ubuntu. Update IP addresses in use. Re-arrange provisioners in Vagrantfile.
2015-10-12 15:13:56 -06: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