# HA Script written by Robert Neuwirth #
# Copyright Camyno GmbH 2014           # 
# ------------------------------------ #

# CaminoServer

PID=$(pgrep CaminoServer)
if [ -n "$PID" ]
then echo "CaminoServer is running..."
else
echo "Starting CaminoServer..."
cd /var/opt/CaminoCRM/CaminoServer
./CaminoServer
fi

# ISC-DHCP-SERVER

PID=$(pgrep dhcpd)
if [ -n "$PID" ]
then echo "isc-dhcp-server is running..."
else
echo "Starting isc-dhcp-server..."
service isc-dhcp-server restart
fi

                                                                                