diff options
author | Jing Lu <lvjing5@huawei.com> | 2017-07-27 05:04:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-27 05:04:37 +0000 |
commit | d184d8714e543e4f2497db682154820f7eecf1de (patch) | |
tree | 0dd1709c01ff9f34b4d39dad4af50ff6b789234f /docker/supervisor.sh | |
parent | d9b9b8970312e13f798a367439cfc2c333c7fca4 (diff) | |
parent | edbe3568a052da8afd24b6877c4c6fdcc7627ba3 (diff) |
Merge "Yardstick GUI & GUI deployment"
Diffstat (limited to 'docker/supervisor.sh')
-rwxr-xr-x | docker/supervisor.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docker/supervisor.sh b/docker/supervisor.sh new file mode 100755 index 000000000..b67de2212 --- /dev/null +++ b/docker/supervisor.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################## +# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +# nginx service start when boot +supervisor_config='/etc/supervisor/conf.d/yardstick.conf' + +if [[ ! -e "${supervisor_config}" ]];then + cat << EOF > "${supervisor_config}" +[supervisord] +nodaemon = true + +[program:nginx] +command = service nginx restart + +[program:yardstick_uwsgi] +directory = /etc/yardstick +command = uwsgi -i yardstick.ini +EOF +fi |