From 486e91f961434b99e5da9d6d7d1ac698f6bfda60 Mon Sep 17 00:00:00 2001 From: Kien Nguyen Date: Wed, 24 Jan 2018 11:47:58 +0700 Subject: [PATCH] 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 --- devstack/lib/zun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/zun b/devstack/lib/zun index c45b3a376..0caefd4f3 100644 --- a/devstack/lib/zun +++ b/devstack/lib/zun @@ -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"