#!/bin/sh -efu
trap '' TERM
echo ONE
# Do not wait forever, stop waiting after a few iterations.
attempt=0
while [ "$attempt" -lt "100" ] && [ ! -s 'killed' ]; do
        sleep 1
        attempt=$((attempt + 1))
done
[ -s 'killed' ] || {
	echo TIMEOUT
	exit 1
}
echo TWO
