#!/bin/sh SERVICE='phpmonitor' if ps aux | grep -v grep | grep $SERVICE > /dev/null then break else /root/phpmonitor.py fi