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

renice: failed to set priority for 48687 (process ID): Permission denied #1

Open
sjqlwy opened this issue Sep 27, 2023 · 1 comment

Comments

@sjqlwy
Copy link

sjqlwy commented Sep 27, 2023

Ubuntu 22.04 jammy, in my situaition, I commeted User=pi Group=pi to make it work, is there any more elegant method?

@sjqlwy
Copy link
Author

sjqlwy commented Oct 3, 2023

https://github.com/Dids/klipper-priority-fix/blob/648deea17eac77414cb5b7606ae20fdbe37716e3/klipper-priority-fix.py#L19C9-L19C9, maybe the reason is sudo not work in systemd service ?

cmd = f"renice -n {KLIPPY_NICE_VALUE} -p {pid} || sudo renice -n {KLIPPY_NICE_VALUE} -p {pid}"

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