multics check script

bollylive

Registered
Messages
3
script

script name: check-multics


#!/bin/bash
SERVICE='multics'

if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
echo "$SERVICE service running, everything is fine"
else
echo "$SERVICE is not running";
/usr/local/bin/multics
echo "$SERVICE Now Run Again"
fi
 
Top