Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
95d7b4c5
Commit
95d7b4c5
authored
Sep 29, 2012
by
Marco Vito Moscaritolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added DOCUMENTATION to supervisorctl module.
parent
9377c3f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
library/supervisorctl
+26
-0
No files found.
library/supervisorctl
View file @
95d7b4c5
...
...
@@ -19,6 +19,32 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
DOCUMENTATION
=
'''
---
module: supervisorctl
short_description: Manage the state of a program or group of programs running via Supervisord
description:
- Manage the state of a program or group of programs running via Supervisord
version_added: "0.7"
options:
name:
description:
- The name of the supervisord program/process to manage
required: true
default: null
state:
description:
- The state of service
required: true
default: null
choices: [ "started", "stopped", "restarted" ]
examples:
- code: supervisorctl name=my_app state=started
description: Manage the state of program I(my_app) to be in I(started) state.
requirements: [ ]
author: Matt Wright
'''
def
_is_present
(
name
,
supervisorctl
):
rc
,
out
,
err
=
_run
(
'
%
s status'
%
supervisorctl
)
return
name
in
out
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment