aboutsummaryrefslogtreecommitdiffstats
path: root/docker/supervisor.sh
blob: b67de2212c4506f3bd4006f0389763175e07010f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
./reveal.js/lib/css/zenburn.css"> <script> var link = document.createElement( 'link' ); link.rel = 'stylesheet'; link.type = 'text/css'; link.href = window.location.search.match( /print-pdf/gi ) ? '../reveal.js/css/print/pdf.css' : '../reveal.js/css/print/paper.css'; document.getElementsByTagName( 'head' )[0].appendChild( link ); </script> </head> <body> <div class="reveal"> <div class="slides"> <section data-markdown="functest2020.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n" data-separator-notes="^Note:"></section> </div> </div> <script src="../reveal.js/lib/js/head.min.js"></script> <script src="../reveal.js/js/reveal.js"></script> <script> Reveal.initialize({ dependencies : [ { src : '../reveal.js/plugin/markdown/marked.js', condition : function() { return !!document.querySelector('[data-markdown]'); } }, { src : '../reveal.js/plugin/markdown/markdown.js', condition : function() { return !!document.querySelector('[data-markdown]'); } }, { src: '../reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, { src: '../reveal.js/plugin/notes/notes.js', async: true } ] }); </script> </body> </html>