Skip to content

Commit

Permalink
fix(ebpf): make env file suitable for systemd [SMAGENT-6800] (#440)
Browse files Browse the repository at this point in the history
When using EnvironmentFile with systemd, it needs
to be a plain environemnt file, we cannot
use the 'export' shell builtin.
  • Loading branch information
iurly authored Mar 21, 2024
1 parent 2fbf113 commit 0168aae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/agent_install/templates/dragent_ebpf_env_file.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated by Ansible. Do not edit
{% if agent_install_driver_type == "universal_ebpf" %}
export SYSDIG_AGENT_DRIVER=universal_ebpf
SYSDIG_AGENT_DRIVER=universal_ebpf
{% elif agent_install_driver_type == "legacy_ebpf" %}
export SYSDIG_AGENT_DRIVER=legacy_ebpf
export SYSDIG_BPF_PROBE=
SYSDIG_AGENT_DRIVER=legacy_ebpf
SYSDIG_BPF_PROBE=
{% endif %}

0 comments on commit 0168aae

Please sign in to comment.