From 2ba2a8ae40b83ac1cc0c4a60724073fa8255b257 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sun, 26 Jan 2014 11:35:45 -0800 Subject: [PATCH] Use exec to replace bash with apache2 after environment is set up Docker-DCO-1.1-Signed-off-by: Mike Naberezny (github: mnaberez) --- docs/sources/examples/using_supervisord.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/examples/using_supervisord.rst b/docs/sources/examples/using_supervisord.rst index c32ba0cc0b..eed063292d 100644 --- a/docs/sources/examples/using_supervisord.rst +++ b/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]``