Inlcude BESU_ENV_OPTS only when we have a valid setting

Signed-off-by: Edward Evans <edward.evans@consensys.net>
pull/17/head
Edward Evans 5 years ago
parent 1cf24b171a
commit b9d7d6f31b
No known key found for this signature in database
GPG Key ID: D043D2B173BC2484
  1. 2
      templates/besu.service.j2

@ -9,7 +9,9 @@ Environment=HOME=/home/{{ besu_user }}
{% if besu_log4j_config_file %} {% if besu_log4j_config_file %}
Environment=LOG4J_CONFIGURATION_FILE={{ besu_log4j_config_file }} Environment=LOG4J_CONFIGURATION_FILE={{ besu_log4j_config_file }}
{% endif %} {% endif %}
{% if besu_env_opts|bool %}
Environment='BESU_OPTS={{ besu_env_opts|besu_opts_format }}' Environment='BESU_OPTS={{ besu_env_opts|besu_opts_format }}'
{% endif %}
Type=simple Type=simple
{% if besu_cmdline_args %} {% if besu_cmdline_args %}
ExecStart=/bin/sh -c "{{ besu_current_dir }}/bin/besu --config-file={{ besu_config_dir }}/config.toml {{ besu_cmdline_args|quote }} >> {{besu_log_dir}}/besu.log 2>&1" ExecStart=/bin/sh -c "{{ besu_current_dir }}/bin/besu --config-file={{ besu_config_dir }}/config.toml {{ besu_cmdline_args|quote }} >> {{besu_log_dir}}/besu.log 2>&1"

Loading…
Cancel
Save