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

Restarting the agent as non root shouldn't hang/go wacko #3490

Open
cory-stripe opened this issue Aug 23, 2017 · 0 comments
Open

Restarting the agent as non root shouldn't hang/go wacko #3490

cory-stripe opened this issue Aug 23, 2017 · 0 comments
Assignees

Comments

@cory-stripe
Copy link
Contributor

cory-stripe commented Aug 23, 2017

Restarting the agent as an unprivileged user — i forgot sudo all the time — blindly tries to run even though it clearly can't make any changes! Maybe add a check at the beginning and bail out?

Additional environment details (Operating System, Cloud provider, etc):

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty

Steps to reproduce the issue:
Run /etc/init.d/datadog-agent restart as an unprivileged user.

Describe the results you received:

$ /etc/init.d/datadog-agent restart
 * Stopping Datadog Agent (stopping supervisord) datadog-agent
start-stop-daemon: warning: failed to kill 19164: Operation not permitted

Ended up ctrl-Z and kill -9ing the thing.

Describe the results you expected:
An error that I'm unprivileged and this won't work. :)

Additional information you deem important (e.g. issue happens only occasionally):
This is minor, but a nice ergonomic feature since it's really frustrating when you're trying to get something done.

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

No branches or pull requests

3 participants