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

Logfile spammed and CPU increase when adding a system service #9

Open
ioogithub opened this issue Oct 14, 2020 · 1 comment
Open

Logfile spammed and CPU increase when adding a system service #9

ioogithub opened this issue Oct 14, 2020 · 1 comment

Comments

@ioogithub
Copy link

ioogithub commented Oct 14, 2020

Thanks for the nice plugin. I have an issue with adding a system service.

I am able to add the service, and I can confirm that the app works correctly turning it on and off however after adding a service my log is spammed with this message:

Oct 14 13:35:50 computer sudo[28437]: user: TTY=unknown ; PWD=/home/oem ; USER=root ; COMMAND=/bin/systemctl is-active
Oct 14 13:35:50 computer sudo[28437]: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 14 13:35:50 computer sudo[28437]: pam_unix(sudo:session): session closed for user root

I get 25 messages every second. Also systemd starts to take up a non trivial amount of CPU.

Is it the widget that is calling the COMMAND=/bin/systemctl is-active this often and is this necessary?

Note, I only see this behavior when adding a system service. If I add a user service, I do not see any instances of COMMAND=/bin/systemctl is-active, there is no CPU increase and it works as expected.

@vauvenal5
Copy link

I guess this is due to missing sudo rights, see readme. But the follow up question is what needs to be done for the widget to just open the std KDE password dialog?

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

2 participants