浏览代码

Add help for the new ``pid`` command options

Mike Naberezny 14 年之前
父节点
当前提交
4383cfe096
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/supervisor/supervisorctl.py

+ 4 - 0
src/supervisor/supervisorctl.py

@@ -627,6 +627,10 @@ class DefaultControllerPlugin(ControllerPluginBase):
 
     def help_pid(self):
         self.ctl.output("pid\t\t\tGet the PID of supervisord.")    
+        self.ctl.output("pid <name>\t\tGet the PID of a single "
+            "child process by name.")
+        self.ctl.output("pid all\t\t\tGet the PID of every child "
+            "process, one per line.")
 
     def _startresult(self, result):
         name = result['name']