2 # this locates the main opensim process if possible. if we cannot find it,
3 # then the process is restarted.
5 source $FEISTY_MEOW_SCRIPTS/opensim/opensim_utils.sh
7 # see if the process is findable.
8 # (this approach will not work if the process actually freezes up but
9 # is still present. we'll never notice the problem. to catch that, we
10 # could be checking the last update time on the main log file.)
11 find_opensim_process OpenSim.exe
12 if [ -z "$OS_PROC_ID" ]; then
13 # jump into the opensim binaries directory so we can run stuff.
14 pushd $HOME/opensim/bin &>/dev/null
15 launch_screen OpenSim OpenSim.exe
16 echo "$(date): Restarted opensim instance on $(hostname)."
19 #else echo "$(date): did nothing--opensim is already running."