<commit_before>#!/bin/bash

set -eo pipefail

ETCD_PORT=${ETCD_PORT:-4001}
HOST_IP=${HOST_IP:-172.17.42.1}
ETCD=$HOST_IP:$ETCD_PORT

echo "[datadog] booting container. ETCD: $ETCD."

# Put a watch `confd` process into the background to watch
# for changes
confd --log-level info -interval=30 -node $ETCD &
echo "[datadog] confd is now monitoring etcd for changes..."

# Start the datadog service using the generated config
echo "[datadog] starting datadog service..."

supervisord -n -c /etc/dd-agent/supervisor.conf --pidfile=/supervisord.pid
<commit_msg>fix: exec supervisord to properly detach bash<commit_after>#!/bin/bash

set -eo pipefail

ETCD_PORT=${ETCD_PORT:-4001}
HOST_IP=${HOST_IP:-172.17.42.1}
ETCD=$HOST_IP:$ETCD_PORT

echo "[datadog] booting container. ETCD: $ETCD."

# Put a watch `confd` process into the background to watch
# for changes
confd --log-level info -interval=30 -node $ETCD &
echo "[datadog] confd is now monitoring etcd for changes..."

# Start the datadog service using the generated config
echo "[datadog] starting datadog service..."

exec supervisord -n -c /etc/dd-agent/supervisor.conf --pidfile=/supervisord.pid

{'fraction_non_alphanumeric': 0.12967798085291557, 'fraction_numerical': 0.024369016536118365, 'mean_word_length': 4.528846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6047846', 'n_tokens_mistral': 425, 'n_tokens_neox': 400, 'n_words': 123}