diff options
author | 2016-12-21 11:14:02 +0000 | |
---|---|---|
committer | 2016-12-21 11:17:26 +0000 | |
commit | 46858e3970bdbcb3026d85b9a640d3bd7f4cdd9a (patch) | |
tree | 3ada18e5bc2b4c5e2a78a5ef0a0d4dbb409270b7 /api/api-prepare.sh | |
parent | dcc1818e66580808de9e427812a1c82f7e0673ff (diff) |
Move uwsgi.log and yardstick.sock to proper location
JIRA: YARDSTICK-504
Now yardstick.sock and uwsgi.log is in yardstick/api directory.
But it is not standard for they should not be put in the code path.
So I move yardstick.sock to /var/run/yardstick.sock
and move uwsgi.log to /var/log/yardstick/uwsgi.log
Change-Id: I526ab011c0222255dfbae037f494edb5d8a88add
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'api/api-prepare.sh')
-rwxr-xr-x | api/api-prepare.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/api/api-prepare.sh b/api/api-prepare.sh index fade8ccc6..5cc65c959 100755 --- a/api/api-prepare.sh +++ b/api/api-prepare.sh @@ -20,7 +20,7 @@ server { index index.htm index.html; location / { include uwsgi_params; - uwsgi_pass unix:///home/opnfv/repos/yardstick/api/yardstick.sock; + uwsgi_pass unix:///var/run/yardstick.sock; } } EOF @@ -47,3 +47,9 @@ command = uwsgi -i yardstick.ini autorestart = true EOF fi + +# create api log directory +mkdir -p /var/log/yardstick + +# create yardstick.sock for communicating +touch /var/run/yardstick.sock |