浏览代码

Add notes on installation and running.

Add a note on distribution packages of Supervisor.
Reference the contributed initscripts for automatic startup.
Jean Jordaan 13 年之前
父节点
当前提交
1b0e67cad6
共有 3 个文件被更改,包括 28 次插入1 次删除
  1. 0 1
      docs/configuration.rst
  2. 14 0
      docs/installing.rst
  3. 14 0
      docs/running.rst

+ 0 - 1
docs/configuration.rst

@@ -1,4 +1,3 @@
-Configuration File
 ==================
 
 The Supervisor configuration file is conventionally named

+ 14 - 0
docs/installing.rst

@@ -82,6 +82,20 @@ Finally, run supervisor's ``python setup.py install``.
    need to be the root user to invoke ``python setup.py install``
    sucessfully for each package.
 
+Installing a distribution package
+---------------------------------
+
+Some Linux distributions such as Ubuntu have started to include Supervisor.
+However the packaged version will not be the very latest, and may include 
+distribution-specific configuration.
+
+Use the package management tools of your distribution to check availability; 
+e.g. on Ubuntu you can run ``apt-cache show supervisor``, and on CentOS
+you can run ``yum info supervisor``.
+
+Packaged Supervisor will normally already be integrated into the service
+management infrastructure of your distribution.
+
 Creating a Configuration File
 -----------------------------
 

+ 14 - 0
docs/running.rst

@@ -242,3 +242,17 @@ users and that all files installed by the supervisor package have
 your ``PYTHONPATH`` is sane and that all Python standard
 library files have adequate file permission protections.
 
+Running :program:`supervisord` automatically on startup
+--------------------------------------------------------
+
+If you are using a distribution-packaged version of Supervisor, it should
+already be integrated into the service management infrastructure of your
+distribution.
+
+There are user-contributed scripts for various operating systems at:
+https://github.com/Supervisor/initscripts
+
+There are some answers at Serverfault in case you get stuck:
+`How to automatically start supervisord on Linux (Ubuntu)`__
+
+.. __: http://serverfault.com/questions/96499/how-to-automatically-start-supervisord-on-linux-ubuntu