diff --git a/tools/packaging/linux/aws-otel-collector.conf b/tools/packaging/linux/aws-otel-collector.conf index 8b6c622eee..ab17d7dd58 100644 --- a/tools/packaging/linux/aws-otel-collector.conf +++ b/tools/packaging/linux/aws-otel-collector.conf @@ -21,7 +21,9 @@ normal exit 0 respawn -exec /opt/aws/aws-otel-collector/bin/aws-otel-collector --config /opt/aws/aws-otel-collector/etc/config.yaml -post-stop exec sleep 1 - +script + . /opt/aws/aws-otel-collector/etc/.env + exec /opt/aws/aws-otel-collector/bin/aws-otel-collector $config +end script +post-stop exec sleep 1