check process consul with pidfile /home/weveadmin/consul/consul.pid
start program = "/home/weveadmin/consul/consul agent -config-dir /home/weveadmin/consul/consul.d/server/ -pid-file /home/weveadmin/consul/consul.pid >> /home/weveadmin/consul/consul.log 2>&1"
stop program = "/home/weveadmin/consul/consul leave"
but it's not working...this is the error in the logs..it says consul timed out? Looks like monit is killing consul even before it had a chance to be fully up.
weveadmin@weve:~$ tail /var/log/monit.log
[UTC Aug 27 19:45:56] error : 'consul' process is not running
[UTC Aug 27 19:45:56] info : 'consul' trying to restart
[UTC Aug 27 19:45:56] info : 'consul' start: /home/weveadmin/consul/consul
[UTC Aug 27 19:46:26] error : 'consul' failed to start (exit status -1) -- /home/weveadmin/consul/consul: Program timed out -- ==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1
==> Starting raft data migration...
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Joining cluster...
Join com