Skip to content

Commit 9484266

Browse files
Bhavani GudditiBhavani Gudditi
authored andcommitted
refactor: remove new relic references from edx services
1 parent df96a15 commit 9484266

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

playbooks/roles/hermes/templates/hermes.sh.j2

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,8 @@
33
# {{ ansible_managed }}
44

55
source {{ hermes_app_dir }}/{{ hermes_service_name }}_env
6-
{% if COMMON_ENABLE_NEWRELIC_APP %}
7-
{% set executable = hermes_venv_bin + '/newrelic-admin run-program ' + hermes_venv_bin + '/python' %}
8-
{% else %}
9-
{% set executable = hermes_venv_bin + '/python' %}
10-
{% endif %}
116

12-
{% if COMMON_ENABLE_NEWRELIC_APP %}
13-
export NEW_RELIC_APP_NAME="{{ hermes_service_name }}"
14-
if command -v ec2metadata >/dev/null 2>&1; then
15-
INSTANCEID=$(ec2metadata --instance-id);
16-
HOSTNAME=$(hostname)
17-
export NEW_RELIC_PROCESS_HOST_DISPLAY_NAME="$HOSTNAME-$INSTANCEID"
18-
fi
19-
export NEW_RELIC_LICENSE_KEY="{{ NEWRELIC_LICENSE_KEY }}"
20-
{% endif -%}
7+
{% set executable = hermes_venv_bin + '/python' %}
218

229
# We exec so that hermes is the child of systemd and can be managed properly
2310
exec {{ executable }} {{ hermes_code_dir }}/hermes.py $@

0 commit comments

Comments
 (0)