Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Upstart script #188

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

fix Upstart script #188

wants to merge 4 commits into from

Conversation

rbrutas
Copy link
Contributor

@rbrutas rbrutas commented Nov 18, 2016

fixes #182 and #187

@@ -20,15 +20,16 @@ script

# Set GOMAXPROCS to use all our CPUs, because Consul can block a scheduler thread
# Use su to become consul user non-interactively on old Upstart versions (see http://superuser.com/a/234541/76168)
exec su -s /bin/sh -c 'GOMAXPROCS=`nproc` exec "$0" "$@" &>>{{ consul_log_file }}' consul -- /opt/consul/bin/consul agent \
exec su -s /bin/sh -c 'GOMAXPROCS=`nproc` exec "$0" "$@"' consul -- /opt/consul/bin/consul agent \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for me and is more consistent with the previous code:

exec su -s /bin/sh -c 'GOMAXPROCS=`nproc` exec "$0" "$@" >>/var/log/consul 2>&1' ...

@lhoss
Copy link
Collaborator

lhoss commented Aug 29, 2017

plz fix conflict 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

consul not logging on Upstart
3 participants