Script to check if jobs is running and start it, if its not running.
====================================
===========
COUNT=`ps -ef | grep "jobs:work" |grep -v grep | wc -l`
/usr/local/bin/bundle exec rake --trace
else
echo "JOB IS RUNNING" &> /dev/null
fi
===========
====================================
===========
COUNT=`ps -ef | grep "jobs:work" |grep -v grep | wc -l`
/usr/local/bin/bundle exec rake --trace
else
echo "JOB IS RUNNING" &> /dev/null
fi
===========
No comments:
Post a Comment