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

Use exec to replace bash with apache2 after environment is set up
Upstream-commit: adae0b248d6f6732f15ef96f856ac097d038a181
Component: engine
This commit is contained in:
Andy Rothfusz
2014-01-27 12:01:59 -08:00
@@ -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]``