still finding fudge-up on startup
[feisty_meow.git] / scripts / buildor / refresh_gffs_build.sh
1 #!/bin/bash
2
3 source $FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh
4
5 echo stopping any running genesis processes...
6 bash $GFFS_TOOLKIT_ROOT/library/zap_genesis_javas.sh 
7
8 export GFFS_LOGS="$HOME/.GenesisII"
9
10 echo cleaning out the logs directory...
11 \rm -f "$GFFS_LOGS"/*log*
12
13 echo making a simple starting log file for container...
14 if [ ! -d "$GFFS_LOGS" ]; then
15   mkdir -p "$GFFS_LOGS"
16   check_result Making GFFS logs directory.
17 fi
18
19 echo building the code freshly, although not with a clean first...
20 build_gffs 
21 check_result Building GFFS source code.
22
23 echo starting container now and spooling its log file...
24 (bash $GFFS_TOOLKIT_ROOT/library/maybe_restart_container.sh &>$TMP/main_container_restarting.log & )
25 # snooze a bit so the container gets a chance to write something.
26 sleep 4
27 tail -f ~/.GenesisII/container.log