#!/usr/bin/env bash

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

exec /opt/freeware/share/metricbeat/bin/metricbeat \
  -path.home /opt/freeware/share/metricbeat \
  -path.config /opt/freeware/etc/metricbeat \
  -path.data /opt/freeware/var/lib/metricbeat \
  -path.logs /opt/freeware/var/log/metricbeat \
  "$@"
