#!/bin/bash
#----------------
# Testing panko-daemons
#----------------

set -e
DAEMONS=('apache2')

for daemon in "${DAEMONS[@]}"; do
    if pidof -x $daemon > /dev/null; then
        echo "OK"
    else
        echo "ERROR: ${daemon} IS NOT RUNNING"
        exit 1
    fi
done
