#!/bin/bash
exec >> /var/log/container-helpers/status-hook.log.d$(date +%d) 2>&1
set -x

if [ $(( $RANDOM % 2)) -eq 0 ]; then
    echo "`date -Iseconds` ok: container is running"
    exit 0
else
    echo "`date -Iseconds` failed: container is not running"
    exit 1
fi
