2012年7月31日 星期二

檢查Process有沒有正常running

if [ -z "$(pgrep -f ${SERVICE})" ] 
  then
    echo Not Running
  else 
    echo Running
fi

沒有留言:

張貼留言