add supervisord/supervisorctl entry points

parent dd6f87a8
...@@ -240,12 +240,12 @@ Return values: ...@@ -240,12 +240,12 @@ Return values:
1 At least one instance hasn't correctly been processed. 1 At least one instance hasn't correctly been processed.
slapos node <start|stop|tail|status> slapos node <start|stop|restart|tail|status>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Usage: Usage:
slapos node <start|stop|tail|status> <instance>:[process] slapos node <start|stop|restart|tail|status> <instance>:[process]
Start/Stop/Show stdout/stderr of instance and/or process. Start/Stop/Restart/Show stdout/stderr of instance and/or process.
Examples: Examples:
...@@ -258,6 +258,19 @@ Examples: ...@@ -258,6 +258,19 @@ Examples:
* Show stdout/stderr of mysqld in slappart2: * Show stdout/stderr of mysqld in slappart2:
slapos node tail slappart2:mysqld slapos node tail slappart2:mysqld
slapos node supervisorctl
~~~~~~~~~~~~~~~~~~~~~~~~~
Usage:
slapos node supervisorctl
Enter into supervisor console.
slapos node supervisord
~~~~~~~~~~~~~~~~~~~~~~~
Usage:
slapos node supervisord
Launch, if not already launched, supervisor daemon.
slapos node log slapos node log
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
......
...@@ -126,6 +126,10 @@ def dispatch(command, is_node_command): ...@@ -126,6 +126,10 @@ def dispatch(command, is_node_command):
call(bang, config=True) call(bang, config=True)
elif command == 'format': elif command == 'format':
call(format, config=GLOBAL_SLAPOS_CONFIGURATION, option=['-c']) call(format, config=GLOBAL_SLAPOS_CONFIGURATION, option=['-c'])
elif command == 'supervisord':
call(supervisord, config=GLOBAL_SLAPOS_CONFIGURATION)
elif command == 'supervisorctl':
call(supervisorctl, config=GLOBAL_SLAPOS_CONFIGURATION)
elif command in ['start', 'stop', 'restart', 'status', 'tail']: elif command in ['start', 'stop', 'restart', 'status', 'tail']:
# Again, too hackish # Again, too hackish
sys.argv[-2:-2] = [command] sys.argv[-2:-2] = [command]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment