supervisorctl 基本命令

1)      查看所有子进程的状态

root@hdp11:/etc/supervisord.d#supervisorctl status

redash_celery                    RUNNING   pid 6815, uptime 64 days, 19:32:07

redash_celery_scheduled          RUNNING   pid 6817, uptime 64 days, 19:32:07

redash_server                    RUNNING   pid 6816, uptime 64 days, 19:32:07

2)      关闭、开启指定进程

supervisorctlstop redash_celery

supervisorctlstart redash_celery

 

3)      关闭、开启所有进程

supervisorctlstop all

supervisorctlstart all

4)      帮助

root@hdp11:~# supervisorctl help

 

default commands (type help ):

=====================================

add   clear  fg        open quit    remove  restart  start   stop  update

avail exit   maintail  pid  reload  reread  shutdown status  tail  version


你可能感兴趣的:(学习笔记)