osctl ct start $CTID || fail "unable to start container"

# Give the system some time to complete boot
if [ "$DISTNAME" == "debian" ] && [ "$RELVER" == "8" ] ; then
	sleep 30
else
	sleep 10
fi

# TODO: find a way to fix this
# See https://github.com/vpsfreecz/vpsadminos/issues/39
if [ "$DISTNAME" == "void" ] ; then
	osctl ct stop $CTID || fail "unable to stop container"
else
	osctl ct stop --dont-kill $CTID || fail "unable to stop container"
fi

osctl ct start $CTID || fail "unable to start container"

# Give the system some time to complete boot
if [ "$DISTNAME" == "debian" ] && [ "$RELVER" == "8" ] ; then
	sleep 30
else
	sleep 10
fi

osctl ct stop --dont-kill $CTID || fail "unable to stop container"

Revert "void: ignore failed graceful shutdown test for now"
Revert "void: ignore failed graceful shutdown test for now"

This reverts commit faf57ea2c61b9919476b3772190501cb07a71f08.

It's fixed in vpsadminos/staging.
