Add procname for uwsgi based services

Code in grenade and elsewhere rely on the process/service name
when one runs "ps auxw" and they grep for example "grep -e glance-api"
to check if the service is running. with uwsgi, let us make sure
we use process name prefix so it is easier to spot the services
and be compatible with code elsewhere that relies on this.

Follow patch set I4d1cd223ed9904fcb19b26fc9362b676e0b4f9b3
Change-Id: I78e6f578d26f6ed6f8ec2b336da55316e25e5ad9
This commit is contained in:
Kien Nguyen 2018-01-24 11:47:58 +07:00
parent 84dd0dc361
commit 486e91f961

View File

@ -336,7 +336,7 @@ function start_zun_api {
local zun_url
if [ "$ZUN_USE_UWSGI" == "True" ]; then
run_process zun-api "$ZUN_BIN_DIR/uwsgi --ini $ZUN_UWSGI_CONF"
run_process zun-api "$ZUN_BIN_DIR/uwsgi --procname-prefix zun-api --ini $ZUN_UWSGI_CONF"
zun_url=$service_protocol://$ZUN_SERVICE_HOST/container
else
run_process zun-api "$ZUN_BIN_DIR/zun-api"