#!/bin/sh -efux

timeout --preserve-status 5s mantis-xray
ec=$?

if [ $ec -eq 143 ]; then
    echo "trapped status 143 and return success"
    exit 0;
else
    exit $ec;
fi
