#!/bin/sh
# test to see if php mt.php is running and start if not

count=`ps ax | grep -v grep | grep -c '/usr/local/bin/php mt.php'`;

if [ 1 = $count ]
  then
    echo "OK";
  else
    echo "Starting mt.php"
    cd /home/okcom/public_html/mt
    nohup /usr/bin/php mt.php &
fi


