dennybaa
3/7/2016 - 10:27 AM

foo.sh

[root@2654557d97a4 /]# export TERM=xterm
[root@2654557d97a4 /]# grep . /var/run/st2/st2*
/var/run/st2/st2api.pid:309
/var/run/st2/st2auth.pid:365
/var/run/st2/st2stream.pid:337
[root@2654557d97a4 /]# ps -A uxwww | grep 'st2auth\|st2api\|st2stream'
st2        309  0.2  0.3 138220 28448 ?        S    10:21   0:00 /opt/stackstorm/st2/bin/python /opt/stackstorm/st2/bin/gunicorn_pecan /opt/stackstorm/st2/lib/python2.7/site-packages/st2api/gunicorn_config.py -k sync -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --pid /var/run/st2/st2api.pid
st2        319  1.0  0.6 194924 49088 ?        S    10:21   0:02 /opt/stackstorm/st2/bin/python /opt/stackstorm/st2/bin/gunicorn_pecan /opt/stackstorm/st2/lib/python2.7/site-packages/st2api/gunicorn_config.py -k sync -b 127.0.0.1:9101 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --pid /var/run/st2/st2api.pid
st2        337  0.2  0.3 138220 28452 ?        S    10:21   0:00 /opt/stackstorm/st2/bin/python /opt/stackstorm/st2/bin/gunicorn_pecan /opt/stackstorm/st2/lib/python2.7/site-packages/st2stream/gunicorn_config.py -k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --pid /var/run/st2/st2stream.pid
st2        347  0.1  0.5 180224 42592 ?        S    10:21   0:00 /opt/stackstorm/st2/bin/python /opt/stackstorm/st2/bin/gunicorn_pecan /opt/stackstorm/st2/lib/python2.7/site-packages/st2stream/gunicorn_config.py -k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --pid /var/run/st2/st2stream.pid
st2        365  0.2  0.3 138224 28476 ?        S    10:21   0:00 /opt/stackstorm/st2/bin/python /opt/stackstorm/st2/bin/gunicorn_pecan /opt/stackstorm/st2/lib/python2.7/site-packages/st2auth/gunicorn_config.py -k sync -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --pid /var/run/st2/st2auth.pid
st2        376  0.1  0.5 195792 43300 ?        S    10:21   0:00 /opt/stackstorm/st2/bin/python /opt/stackstorm/st2/bin/gunicorn_pecan /opt/stackstorm/st2/lib/python2.7/site-packages/st2auth/gunicorn_config.py -k sync -b 127.0.0.1:9100 --workers 1 --threads 1 --graceful-timeout 10 --timeout 30 --pid /var/run/st2/st2auth.pid
root      1176  0.0  0.0   9732  1984 ?        S+   10:24   0:00 grep st2auth\|st2api\|st2stream
[root@2654557d97a4 /]# st2ctl stop; sleep 15;
Stopping st2actionrunner: [  OK  ]
Stopping st2actionrunner: [  OK  ]
Stopping st2actionrunner: [  OK  ]
Stopping st2actionrunner: [  OK  ]
Stopping st2actionrunner: [  OK  ]
Stopping st2actionrunner: [  OK  ]
Stopping st2actionrunner: [  OK  ]
Stopping st2actionrunner: [  OK  ]
Stopping st2actionrunner: [  OK  ]
Stopping st2actionrunner: [  OK  ]
Stopping st2api:                                           [  OK  ]
Stopping st2stream:                                        [  OK  ]
Stopping st2auth:                                          [  OK  ]
Stopping st2garbagecollector:                              [  OK  ]
Stopping st2notifier:                                      [  OK  ]
Stopping st2resultstracker:                                [  OK  ]
Stopping st2rulesengine:                                   [  OK  ]
Stopping st2sensorcontainer:                               [  OK  ]
mistral: unrecognized service
[root@2654557d97a4 /]# ps -A uxwww | grep 'st2auth\|st2api\|st2stream'
st2        347  0.1  0.5 180224 42592 ?        S    10:21   0:00 /opt/stackstorm/st2/bin/python /opt/stackstorm/st2/bin/gunicorn_pecan /opt/stackstorm/st2/lib/python2.7/site-packages/st2stream/gunicorn_config.py -k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --pid /var/run/st2/st2stream.pid
root      1405  0.0  0.0   9728   556 ?        R+   10:26   0:00 grep st2auth\|st2api\|st2stream
[root@2654557d97a4 /]# sleep 10
[root@2654557d97a4 /]# ps -A uxwww | grep 'st2auth\|st2api\|st2stream'
st2        347  0.1  0.5 180224 42592 ?        S    10:21   0:00 /opt/stackstorm/st2/bin/python /opt/stackstorm/st2/bin/gunicorn_pecan /opt/stackstorm/st2/lib/python2.7/site-packages/st2stream/gunicorn_config.py -k eventlet -b 127.0.0.1:9102 --workers 1 --threads 10 --graceful-timeout 10 --timeout 30 --pid /var/run/st2/st2stream.pid
root      1408  0.0  0.0    408     4 ?        R+   10:26   0:00 grep st2auth\|st2api\|st2stream
[root@2654557d97a4 /]#