The script will start only in case if the same script is not running.
#!/bin/bash |
if ps -ef | grep - v grep | grep "process name" ; then |
echo "process running" |
exit 0 |
else |
echo "process not running" |
exit 0 |
fi |
My main background for a recent years is MySQL DEV/DBA engineer but I’m also participating in wider range of tasks which could be likely called as DataOps/DevOps tasks. You can see my online CV here: http://catyellow.net