From c17e96d38bc766978b716fb863c63b2ad59c05ad Mon Sep 17 00:00:00 2001 From: chenke Date: Mon, 2 Mar 2020 09:44:17 +0800 Subject: [PATCH] Add procname for uwsgi based service watcher-api Code in grenade and elsewhere rely on the process/service name when one runs "ps auxw" and they grep for example "grep -e watcher-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. Reference: https://review.opendev.org/#/c/494531/ Change-Id: I69dbe8840e87a8cb0b2720caa95fb17fb7a30848 --- devstack/lib/watcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/lib/watcher b/devstack/lib/watcher index 53f915500..577ac01e5 100644 --- a/devstack/lib/watcher +++ b/devstack/lib/watcher @@ -298,7 +298,7 @@ function start_watcher_api { service_protocol="http" fi if [[ "$WATCHER_USE_WSGI_MODE" == "uwsgi" ]]; then - run_process "watcher-api" "$WATCHER_BIN_DIR/uwsgi --ini $WATCHER_UWSGI_CONF" + run_process "watcher-api" "$WATCHER_BIN_DIR/uwsgi --procname-prefix watcher-api --ini $WATCHER_UWSGI_CONF" watcher_url=$service_protocol://$SERVICE_HOST/infra-optim else watcher_url=$service_protocol://$SERVICE_HOST:$service_port