java - bash script issue launching programs -
i have bash script executed when aws ec2 ubuntu instance boots, via aws server launch configuration (which bash script) using following command sudo -u ubuntu /vagrant/test/startall.sh the issue i'm seeing java programs don't run if they're last entry in bash script, run fine if not last entry. i'm bit stumped why it's happening. here's bash script... startall.sh #!/bin/bash # set -x brokersrvdir="/vagrant/test/ppp" meetingsrvdir="/vagrant/test/clone" notifysrvdir="/vagrant/test/notification/production/notificationsrv" workerdir="/vagrant/test/ppp/production/ppworker2" #( cd $workerdir && { make runworker >>log/out.txt 2>&1 & } ) ( cd $brokersrvdir && { ./ppp_broker >>log/out.txt 2>&1 & } ) ( cd $notifysrvdir && { make runnotify >>log/out.txt 2>&1 & } ) ( cd $meetingsrvdir && { ./meetingsrv > /dev/null 2>>log/o...