Skip to content

Commit

Permalink
amend paths for supervisord
Browse files Browse the repository at this point in the history
supervisord fails to find path of event-relay even if PATH is
set correctly. Fall back to this solution.
  • Loading branch information
Ivan Kruglov committed Feb 26, 2015
1 parent df56d1f commit 7d9ebaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions event-relay.jemalloc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions event-relay.tcmalloc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d9ebaa

Please sign in to comment.