File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
playbooks/roles/hermes/templates Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 3
3
# {{ ansible_managed }}
4
4
5
5
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 %}
11
6
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' %}
21
8
22
9
# We exec so that hermes is the child of systemd and can be managed properly
23
10
exec {{ executable }} {{ hermes_code_dir }}/hermes.py $@
You can’t perform that action at this time.
0 commit comments