#!/bin/bash
# komivlad (mk@vistep.ru)
# 2017 
#PC=`ps ax | grep [stat].vistep.ru| wc -l`
PC=`ps -C stat.vistep.ru |grep -v PID|wc -l `
DATE=`date`
LOG='/var/log/stat.vistep.ru.log'
if [ $PC -eq 0 ] 
then
echo $DATE '[x] restarting stat.vistep.ru daemon!'>>$LOG
cd /opt/stat.vistep.ru/
./stat.vistep.ru
fi
