hi dmitri,

well I am using the following restart script for bash, although I am not
sure if this is actually the clean way to do it:

#!/bin/bash
#kill java processes
PROC=$(pidof java)
echo $PROC
for ELT in $PROC
do
   echo "killing "$ELT
   $(kill -9 $ELT)
done
#wait for kill to finish
wait
RESTART=$(ant server &)

you might just add a start|stop option by seperating process killing and
restart.

muriel
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to