瀏覽代碼

Use exec to replace bash with apache2 after environment is set up
Docker-DCO-1.1-Signed-off-by: Mike Naberezny <mike@naberezny.com> (github: mnaberez)

Mike Naberezny 11 年之前
父節點
當前提交
2ba2a8ae40
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/sources/examples/using_supervisord.rst

+ 1 - 1
docs/sources/examples/using_supervisord.rst

@@ -70,7 +70,7 @@ Let's see what is inside our ``supervisord.conf`` file.
     command=/usr/sbin/sshd -D
     command=/usr/sbin/sshd -D
 
 
     [program:apache2]
     [program:apache2]
-    command=/bin/bash -c "source /etc/apache2/envvars && /usr/sbin/apache2 -DFOREGROUND"
+    command=/bin/bash -c "source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND"
 
 
 The ``supervisord.conf`` configuration file contains directives that configure
 The ``supervisord.conf`` configuration file contains directives that configure
 Supervisor and the processes it manages. The first block ``[supervisord]``
 Supervisor and the processes it manages. The first block ``[supervisord]``