#!/bin/bash # created from: /opt/workspace/service/bin/scan_for_services.env by benow launch function run { java -Djava.library.path=null -DFBLog4j=true -Dorg.exolab.castor.indent=true -Xmx500m -Djava.awt.headless=true -DrestartSupported=true -cp /opt/workspace/service/build/java:/opt/workspace/service/null:null org.benow.service.ServiceRegistrar $* } run $*; EXIT=$? echo Exited with $EXIT while [ $EXIT -eq 69 ]; do echo Restarting run $*; EXIT=$? echo Exited with $EXIT done exit $EXIT