CONTAINERID=$(basename $(cat proc/self/cpuset) | cut -c 1-12)
LOG="/logs/log.txt"

case $1 in
sleep)
	trap "echo $DATE $NAME $CONTAINERID Received SIGTERM >> $LOG; exit 0" SIGTERM
	echo "$DATE $NAME $CONTAINERID Starting" >> $LOG

	sleep 10
	touch /tmp/ready