diff --git a/roles/alloy/agent/templates/alloy.service.j2 b/roles/alloy/agent/templates/alloy.service.j2 index 8e944a2..25d7e2a 100644 --- a/roles/alloy/agent/templates/alloy.service.j2 +++ b/roles/alloy/agent/templates/alloy.service.j2 @@ -11,7 +11,10 @@ UMask=0027 Type=simple User={{ alloy_user }} Group={{ alloy_group }} -ExecStart=/bin/bash -c 'exec {{ alloy_install_dir }}/alloy-linux-amd64 --storage.path={{ alloy_data_dir }}/data run {{ alloy_conf_dir }}/alloy.conf >>{{ alloy_log_dir }}/{{ alloy_log_file }} 2>&1' +ExecStart=/bin/bash -c 'exec {{ alloy_install_dir }}/alloy-linux-amd64 \ + --storage.path={{ alloy_data_dir }}/data \ + --disable-reporting=true \ + run {{ alloy_conf_dir }}/alloy.conf >>{{ alloy_log_dir }}/{{ alloy_log_file }} 2>&1' # Give a reasonable amount of time for alloy to start up/shut down TimeoutSec = 60 Restart = on-failure