-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
Use service module for rootless systemd #647
Comments
Not sure what's going on here, but you're looking for a systemd thing (ie. a timer), but the code looks like it's using the SysV code to do a 'find'. The systemd |
Yeah, that's weird, but I have no idea why the SysV code is used. |
The SysV code is a fallback: pytest-testinfra/testinfra/modules/service.py Lines 153 to 162 in 8d69308
I get a similar error when I try to check a non-existing service as user root:
Since I use "root", I do not get the permission error that was mentioned initially |
Hi, is there a way to use the service module with systemd services running on a non-privileged user? Just using
sudo
doesn't seems to work:The text was updated successfully, but these errors were encountered: