24 Jul 12, 06:48AM
Create a bash script with
Add a cronjob to run it every 5 mins or so
[SELECT ALL] Code:
#!/bin/bash
#make-run.sh
#make sure a process is always running.
export DISPLAY=:0 #needed if you are running a simple gui app.
process=YourProcessName
makerun="/usr/bin/program"
if ps ax | grep -v grep | grep $process > /dev/null
then
exit
else
$makerun &
fi
exit
Add a cronjob to run it every 5 mins or so