diff --git a/testinfra/modules/service.py b/testinfra/modules/service.py index 9a3d704a..1d09cf52 100644 --- a/testinfra/modules/service.py +++ b/testinfra/modules/service.py @@ -181,7 +181,7 @@ def exists(self): @property def is_running(self): - out = self.run_expect([0, 1, 3], "systemctl is-active %s", self.name) + out = self.run_expect([0, 1, 3, 4], "systemctl is-active %s", self.name) if out.rc == 1: # Failed to connect to bus: No such file or directory return super().is_running