hellanzb as a deamon on Linux

You wish to use Hellanzb and start it as your machine is booting up.

Make sure of the current path based on your Linux distribution that needs to match the current path on the script.

Download the Hellanzb script here

 

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