(GH-489) Function created to test whether status is running or stopped