From 7d9ebaab823f2e586a8ede6415905b925865c952 Mon Sep 17 00:00:00 2001 From: Ivan Kruglov Date: Thu, 26 Feb 2015 14:23:39 +0100 Subject: [PATCH] amend paths for supervisord supervisord fails to find path of event-relay even if PATH is set correctly. Fall back to this solution. --- event-relay.jemalloc | 2 ++ event-relay.tcmalloc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/event-relay.jemalloc b/event-relay.jemalloc index 8aca661..5f7dac0 100755 --- a/event-relay.jemalloc +++ b/event-relay.jemalloc @@ -4,6 +4,8 @@ JEMALLOC_SO=$(ls /usr/lib64/libjemalloc.so* | sort -t. -rn -k +3 -k +4 -k +5 | h if [ -x bin/event-relay ]; then EVENT_RELAY=bin/event-relay # for devel +elif [ SUPERVISOR_ENABLED ]; then + EVENT_RELAY=/usr/local/bin/event-relay # for supervisord else EVENT_RELAY=event-relay # from PATH fi diff --git a/event-relay.tcmalloc b/event-relay.tcmalloc index d84b5f1..6b47ff8 100755 --- a/event-relay.tcmalloc +++ b/event-relay.tcmalloc @@ -4,6 +4,8 @@ TCMALLOC_SO=$(ls /usr/lib64/libtcmalloc.so* | sort -t. -rn -k +3 -k +4 -k +5 | h if [ -x bin/event-relay ]; then EVENT_RELAY=bin/event-relay # for devel +elif [ SUPERVISOR_ENABLED ]; then + EVENT_RELAY=/usr/local/bin/event-relay # for supervisord else EVENT_RELAY=event-relay # from PATH fi