Browse Source

Environment configuration docs.

Chris McDonough 18 years ago
parent
commit
2da629371d
1 changed files with 20 additions and 6 deletions
  1. 20 6
      README.txt

+ 20 - 6
README.txt

@@ -480,12 +480,20 @@ Nondaemonizing of Subprocesses
 Subprocess Environment
 
   Subprocesses will inherit the environment of the shell used to start
-  the supervisord program.  These environment variables may be
-  overridden within the "environment" global config option (applies to
-  all subprocesses) or within the per-program "environment" config
-  option (applies only to the subprocess specified within the
-  "program" section).  These "environment" settings are additive.  In
-  other words, each subprocess' environment will consist of::
+  the supervisord program.  Several environment variables will be set
+  by supervisor itself in the child's environment also, including
+  "SUPERVISOR_ENABLED" (a flag indicating the process is under
+  supervisor control), "SUPERVISOR_PROCESS_NAME" (the
+  config-file-specified process name for this process) and
+  "SUPERVISOR_GROUP_NAME" (the config-file-specified process group name
+  for the child process).
+
+  These environment variables may be overridden within the
+  "environment" global config option (applies to all subprocesses) or
+  within the per-program "environment" config option (applies only to
+  the subprocess specified within the "program" section).  These
+  "environment" settings are additive.  In other words, each
+  subprocess' environment will consist of::
 
     The environment variables set within the shell used to start
     supervisord...
@@ -497,6 +505,12 @@ Subprocess Environment
 
     ... added-to/overridden-by ...
 
+    ... supervisor-specific environment variables
+     ("SUPERVISOR_ENABLED", "SUPERVISOR_PROCESS_NAME",
+     "SUPERVISOR_GROUP_NAME") ..
+
+    ... added-to/overridden-by ...
+
     .. the environment variables set within the per-process
     "environment" config option.