summaryrefslogtreecommitdiff
path: root/web_infrastructure/supervisorctl.py
diff options
context:
space:
mode:
Diffstat (limited to 'web_infrastructure/supervisorctl.py')
-rw-r--r--web_infrastructure/supervisorctl.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/web_infrastructure/supervisorctl.py b/web_infrastructure/supervisorctl.py
index bd6baa98..97cd3a0c 100644
--- a/web_infrastructure/supervisorctl.py
+++ b/web_infrastructure/supervisorctl.py
@@ -83,16 +83,28 @@ author:
EXAMPLES = '''
# Manage the state of program to be in 'started' state.
-- supervisorctl: name=my_app state=started
+- supervisorctl:
+ name: my_app
+ state: started
# Manage the state of program group to be in 'started' state.
-- supervisorctl: name='my_apps:' state=started
+- supervisorctl:
+ name: 'my_apps:'
+ state: started
# Restart my_app, reading supervisorctl configuration from a specified file.
-- supervisorctl: name=my_app state=restarted config=/var/opt/my_project/supervisord.conf
+- supervisorctl:
+ name: my_app
+ state: restarted
+ config: /var/opt/my_project/supervisord.conf
# Restart my_app, connecting to supervisord with credentials and server URL.
-- supervisorctl: name=my_app state=restarted username=test password=testpass server_url=http://localhost:9001
+- supervisorctl:
+ name: my_app
+ state: restarted
+ username: test
+ password: testpass
+ server_url: 'http://localhost:9001'
'''