[PR #7284/b88b0459 backport][stable-7] supervisorctl: stop process before removing it (#7325)

supervisorctl: stop process before removing it (#7284)

* supervisorctl: stop process before removing it

* Update supervisorctl.py

Removes blanks

* adds fragment

* introduces stop_before_removing parameter and fix deleting after stopping

* reduce line length

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

* miss some exit

* fixing review

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b88b04593f)

Co-authored-by: Damien Gustave <delovan@gmail.com>
This commit is contained in:
patchback[bot]
2023-09-28 21:43:45 +02:00
committed by GitHub
parent dcfd0f47e6
commit 14a86ed0ad
2 changed files with 22 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
minor_changes:
- supervisorctl - allow to stop matching running processes before removing them with ``stop_before_removing=true`` (https://github.com/ansible-collections/community.general/pull/7284).