-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
service is_running does not work with exit code 4 #748
Comments
I have the same issue, is there a workaround for this one? |
Crash is expected no ? I mean a service which doesn't exists should not be reported as just "not running". |
That makes sense, but the main problem here is the inconsistency in behavior (example of Ubuntu 22 and Ubuntu 24)
So the painpoint is running the same test against the two distros now requires us to hack the test a bit to account for the same scenario returning separate results. |
I agree. We have some tooling that deals with a variety of distros (Debian, Alma, etc) and Ubuntu 24 is the only one giving trouble. For the time being, I'm slipping in a class with a few methods such as |
I don't think it's just Ubuntu 24 tbh. https://refspecs.linuxbase.org/LSB_3.0.0/LSB-PDA/LSB-PDA/iniscrptact.html manpage of my
|
What about:
? |
Error code 4:
LSB: "program or service status is unknown"
systemd: "no such unit"
I would expect service.is_running() to return False, when service is not available, while like this is causes a crash, as there is
run_expect([0, 1, 3]
Would it be possible to add rc 4, at least to SystemdService?
The text was updated successfully, but these errors were encountered: