diff --git a/changelogs/fragments/sysvinit_bugxif.yml b/changelogs/fragments/sysvinit_bugxif.yml new file mode 100644 index 00000000000..fc469640d7f --- /dev/null +++ b/changelogs/fragments/sysvinit_bugxif.yml @@ -0,0 +1,2 @@ +bugfixes: + - fix ps detection of service https://github.com/ansible/ansible/pull/43014 diff --git a/lib/ansible/modules/system/sysvinit.py b/lib/ansible/modules/system/sysvinit.py index 6cefb5aebbe..95c1fe6bcee 100644 --- a/lib/ansible/modules/system/sysvinit.py +++ b/lib/ansible/modules/system/sysvinit.py @@ -221,6 +221,7 @@ def main(): if not worked: # hail mary if rc == 0: + is_started = True worked = True # ps for luck, can only assure positive match elif get_ps(module, name):