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

Cannot stop script without sudo #20

Open
AlexEshoo opened this issue Jul 10, 2017 · 0 comments
Open

Cannot stop script without sudo #20

AlexEshoo opened this issue Jul 10, 2017 · 0 comments

Comments

@AlexEshoo
Copy link

AlexEshoo commented Jul 10, 2017

I am having a problem stopping a script that I am running using the user option. I configured the permissions on some necessary directories to be able to start the service properly, but when I try to stop it, I get the following message:

kill: Operation not permitted

After some investigation I found that the PID stored for the init script is the one for the sudo -u <user> <cmd> command, and there is a separate one for the actual running script. I started the service and I cannot kill the process using kill <pid> using both the pid for the sudo -u command (stored in /var/run/<cmd>.pid) as the desired user. Any ideas?

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

1 participant