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

Removing sudo from upstart script. #65

Merged

Conversation

jlm3575
Copy link

@jlm3575 jlm3575 commented May 9, 2017

No description provided.

@@ -13,5 +13,7 @@ umask 007
kill timeout 300

script
exec sudo -u zookeeper -g zookeeper {{zookeeper_dir}}/bin/zkServer.sh start-foreground > /var/log/zookeeper/init-zookeeper.log 2>&1
# https://superuser.com/questions/213416/running-upstart-jobs-as-unprivileged-users
exec su -s /bin/sh -c 'exec "$0" "$@" &>>/var/log/zookeeper/init-zookeeper.log' zookeeper -- \
Copy link
Author

Choose a reason for hiding this comment

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

A safer way to start the process for a different user.

@ernestas-poskus
Copy link
Member

Hi please rebase on master, build is now fixed with #67

@jlm3575 jlm3575 force-pushed the jlm3575/remove-upstart-sudo branch from a591530 to 0d958ee Compare May 17, 2017 14:50
@jlm3575
Copy link
Author

jlm3575 commented May 17, 2017

@ernestas-poskus rebased

@ernestas-poskus
Copy link
Member

Thank you contribution

@ernestas-poskus ernestas-poskus merged commit 1f27c7d into AnsibleShipyard:master May 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants