瀏覽代碼

Document updates for https://github.com/Supervisor/supervisor/issues/24

Luke Weber 9 年之前
父節點
當前提交
da07f55d94
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      docs/running.rst

+ 4 - 2
docs/running.rst

@@ -217,8 +217,10 @@ The :command:`supervisorctl` executable may be invoked with "one time"
 commands when invoked with arguments from a command line.  An example:
 commands when invoked with arguments from a command line.  An example:
 ``supervisorctl stop all``.  If arguments are present on the
 ``supervisorctl stop all``.  If arguments are present on the
 command-line, it will prevent the interactive shell from being
 command-line, it will prevent the interactive shell from being
-invoked.  Instead, the command will be executed and
-``supervisorctl`` will exit.
+invoked.  Instead, the command will be executed and ``supervisorctl``
+will exit with a code of 0 for success or running and non-zero for
+error. An example: ``supervisorctl status all`` would return non-zero
+if any single process was not running.
 
 
 If :command:`supervisorctl` is invoked in interactive mode against a
 If :command:`supervisorctl` is invoked in interactive mode against a
 :program:`supervisord` that requires authentication, you will be asked
 :program:`supervisord` that requires authentication, you will be asked