cd /
vi autorun
et mettre:
if [ ! "$(pidof java)" ] #replace with your process name (pidof ....) then echo "ERROR : not running !" ; cd /red5 ./red5.sh & else echo "OK : red5 is running" fi
if ne reste plus qu’à rajouter un crontab (par exemple toutes les 5 minutes)
crontab –e
*/5 * * * * /autorun