-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Support a 'signalled' state in the supervisorctl module #29847
Comments
From @stevelle on 2016-03-22T10:51:59Z +1 for this feature idea. |
From @dellsystem on 2016-03-22T10:51:59Z +1 as well, would love this feature. |
From @tedder on 2016-03-22T10:51:59Z SIGHUP type support would certainly cut down on some of the times where I use |
From @dellsystem on 2016-03-22T10:51:59Z Turns out adding a "reloaded" state is a pretty simple fix: dellsystem/ansible-modules-core@a97896c I was going to submit a PR for this as well, but if anyone needs this functionality in the meantime, you can edit the source file yourself and apply the changes on lines 110 and 208-215. That should work if you're on the latest version of ansible (2.1.0). If you're on an older version, the code will be slightly different, but the basic instructions are:
state=dict(required=True, choices=['present', 'started', 'restarted', 'stopped', 'absent']) and add
if state == 'restarted': and clone the whole block directly underneath, replacing |
From @mattupstate on 2016-03-22T10:51:59Z needs_contributor |
Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.
For further information, please see: |
From @underyx on 2016-03-22T10:51:59Z
Issue Type:
Component Name:
supervisorctl module
Ansible Version:
N/A
Ansible Configuration:
N/A
Environment:
N/A
Summary:
Supervisor 3.2.0 introduced the
signal
command forsupervisorctl
. This allows sending an arbitrary signal to supervised processes with the commandsupervisorctl signal <signal name> <name>
. This could be used to for example reload nginx by sending it a SIGHUP, instead of usingstate=restarted
and having it shut down momentarily.Steps To Reproduce:
Copied from original issue: ansible/ansible-modules-core#3299
The text was updated successfully, but these errors were encountered: