Shell Script checking if process is running and action

Script below:

#/usr/bin
# Verifie si mon porcess est en memoire
if ps -ef | grep -q [M]on_process
then
echo “$(date) – mon process est deja en memoire” >> /tmp/mon_process.log
exit
else
# lancer mon process si pas present en memoire
echo “$(date) – mon processus demarre” >> /tmp/mon_process.log
ma commande (/opt/…)
fi