Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Add more information to logs in upstart script
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldju committed Nov 18, 2016
1 parent 03d1aca commit 76d941d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/consul.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ pre-start script
echo "Not enough peers, expected $BOOTSTRAP_EXPECT nodes but got $SERVERS" >> <%= @log_file %>
exit 1
fi

echo "Found $SERVERS which is > $BOOTSTRAP_EXPECT servers"
end script

script
Expand All @@ -49,6 +51,7 @@ script
exit 1
fi

echo "Executing the following command to start consule 'exec <%= @bin_dir %>/consul agent -dc ${CONSUL_DC} -config-file=<%= @config_dir %>/configuration.json $(echo "$SERVERS" | sed 's/^/ -retry-join /' | tr -d '\n') >><%= @log_file %>'"
exec <%= @bin_dir %>/consul agent \
-dc ${CONSUL_DC} \
-config-file=<%= @config_dir %>/configuration.json \
Expand Down

0 comments on commit 76d941d

Please sign in to comment.