From ba843990c9335ea4bd2f1db2a8377b264ddd0524 Mon Sep 17 00:00:00 2001 From: Rikimaru Honjo Date: Tue, 16 May 2017 18:58:32 +0900 Subject: [PATCH] Fix plugin for systemd Current devstack uses systemd for running processes.[1] As a result, path of process should be specified as full path. So this patch fixes specifying path. [1]https://docs.openstack.org/developer/devstack/systemd.html Change-Id: I0742a8f746a7ba7a3394e9e3bb5ab3a7ba857e04 Closes-Bug: #1691066 --- devstack/plugin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index b82af21..4154f7d 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -87,7 +87,8 @@ function start_sheepdog { if [[ ${DISTRO} =~ (trusty) ]]; then run_process sheepdog "sheep -f -o -l 7 -c local -n ${SHEEPDOG_DATA_DIR}" elif [[ ${DISTRO} =~ (xenial) ]]; then - run_process sheepdog "sheep -l dst=stdout,level=debug,format=server -c local -n ${SHEEPDOG_DATA_DIR}" + SHEEP_COMMAND_PATH=`which sheep` + run_process sheepdog "$SHEEP_COMMAND_PATH -l dst=stdout,level=debug,format=server -c local -n ${SHEEPDOG_DATA_DIR}" else exit_distro_not_supported "Sheepdog since your distro doesn't provide (at least) the Firefly release. Please use Ubuntu Trusty or Xenial." fi