diff options
Diffstat (limited to 'docker/supervisor.sh')
-rwxr-xr-x | docker/supervisor.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/supervisor.sh b/docker/supervisor.sh index b67de2212..a4104c7fb 100755 --- a/docker/supervisor.sh +++ b/docker/supervisor.sh @@ -11,7 +11,8 @@ # nginx service start when boot supervisor_config='/etc/supervisor/conf.d/yardstick.conf' -if [[ ! -e "${supervisor_config}" ]];then +if [[ ! -e "${supervisor_config}" ]]; then + cat << EOF > "${supervisor_config}" [supervisord] nodaemon = true @@ -22,5 +23,9 @@ command = service nginx restart [program:yardstick_uwsgi] directory = /etc/yardstick command = uwsgi -i yardstick.ini + +[program:rabbitmq] +command=/etc/yardstick/rabbitmq.sh EOF + fi |