#!/bin/bash

if systemctl is-active $1 >/dev/null 2>&1
then
    echo -e "OK: Service $1 is running!"
    exit $OK
else
    echo -e "CRITICAL: Service $1 is not running!"
    exit $CRITICAL
fi
