소스 검색

Merge pull request #3773 from mnaberez/supervisord-apache2-example

Use exec to replace bash with apache2 after environment is set up
Andy Rothfusz 11 년 전
부모
커밋
adae0b248d
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
 
     [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
 Supervisor and the processes it manages. The first block ``[supervisord]``