Merge "Support bind driver for QAT HW cards"
[yardstick.git] / docker / supervisor.sh
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 # nginx service start when boot
12 supervisor_config='/etc/supervisor/conf.d/yardstick.conf'
13
14 if [[ ! -e "${supervisor_config}" ]]; then
15
16     cat << EOF > "${supervisor_config}"
17 [supervisord]
18 nodaemon = true
19
20 [program:nginx]
21 command = service nginx restart
22
23 [program:yardstick_uwsgi]
24 directory = /etc/yardstick
25 command = uwsgi -i yardstick.ini
26
27 [program:rabbitmq]
28 command=/etc/yardstick/rabbitmq.sh
29 EOF
30
31 fi