#!/usr/bin/env bash

# Script to run Elastic-Agent in foreground with the same path settings that
# the init script / systemd unit file would do.

exec /usr/share/elastic-agent/bin/elastic-agent \
  --path.home /var/lib/elastic-agent \
  --path.config /etc/elastic-agent \
  --path.logs /var/log/elastic-agent \
  "$@"
