Skip to content

Commit

Permalink
Merge 8a4693c into 437ec3b
Browse files Browse the repository at this point in the history
  • Loading branch information
pboothe committed Oct 30, 2019
2 parents 437ec3b + 8a4693c commit a1dd92a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions fullstack/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ set -euxo pipefail
# Set up the filesystem.

# Set up UUIDs to have a common race-free prefix.
UUID_DIR=/var/local/uuid
UUID_FILE=${UUID_DIR}/prefix
mkdir -p "${UUID_DIR}"
if [ ! -f "$UUID_FILE" ]; then
/create-uuid-prefix-file --filename="${UUID_FILE}"
fi
UUID_FILE=$(mktemp /tmp/uuidprefix.XXXXXX)
/create-uuid-prefix-file --filename="${UUID_FILE}"

# Set up the data directory.
DATA_DIR=/var/spool/ndt
Expand All @@ -47,14 +43,20 @@ mkdir -p "${DATA_DIR}"/tcpinfo
--prometheusx.listen-address=:9991 \
--uuid-prefix-file="${UUID_FILE}" \
--output="${DATA_DIR}"/tcpinfo \
--eventsocket=/var/local/tcpeventsocket.sock \
&

while [[ ! -e /var/local/tcpeventsocket.sock ]]; do
sleep 1
done

# Start the traceroute service.
mkdir -p "${DATA_DIR}"/traceroute
/traceroute-caller \
--prometheusx.listen-address=:9992 \
--uuid-prefix-file="${UUID_FILE}" \
--outputPath="${DATA_DIR}"/traceroute \
--tcpinfo.socket=/var/local/tcpeventsocket.sock \
&

# TODO: Start the packet header capture service.
Expand Down

0 comments on commit a1dd92a

Please sign in to comment.