-
Notifications
You must be signed in to change notification settings - Fork 40
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
Properly stop process started with sudo #144
Conversation
Maybe a different approach would be to set default directory using TRAMP and sudo protocol and then call the original code. I would as much as possible try to use the |
While writing a response I figured out a way to not depending on I agree that utilizing TRAMP would be the best possible solution but there are a few blockers:
Currently killing services with |
Sounds good to me. Plus if it fixes the issue for at least some portion of the users that's a good change for me. It seems to be backward compatible with the non-sude tasks. We can think about the refactor later, but I think there is already enough value to merge this. Thanks for looking into it! |
Apparently this repo requires all commits to be signed: Is this an option for you? If not, I can rebase them somehow so they get signed (it should still retain you as the author though, I don't want to take the credit) This is the link: https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification |
Sorry for getting back late, thanks for the heads up. Signed the commits and updated. |
@Fuco1 just a nudge to remind you about this. |
@isamert Could you please squash your 2 commits into 1? I can do it if you prefer. |
You can squash if it's okay for you, thanks! |
011f395
to
062b1ad
Compare
Done. Thank you very much for your work. |
Prodigy can't stop processes started with sudo because it does not
have the privileges to do that. This PR simply fixes that by running
the
kill
command withprodigy-start-sudo-process
and with givenstop-signal
. Partially fixes #111.