#!/bin/sh

# Disable generating core dump files.
ulimit -c 0

# This will print all goroutine stack traces if the program crashes and try to create a core dump (which we've disabled).
export GOTRACEBACK=crash

echo "Starting te-inventory-agent ..."

exec  /usr/bin/te-inventory-agent -config-file /etc/te-inventory-agent-config \
                                  -te-identity-file /var/lib/te-agent/identity.json \
                                  -te-config-file /etc/te-agent.cfg
