#!/bin/bash

for colour in blue green
do
    echo "Starting $1-$2-$colour"
    sudo service $1-$2-$colour start

    sleep 10

    systemctl is-active $1-$2-$colour --quiet
    if [ $? != 0 ]
    then
        echo "$1-$2-$colour service is not running"
    else
        echo "Started $1-$2-$colour service"
    fi;
done
