Ah, I thought that you had to shutdown with ofbizBackground when you started with ofbizBackground
It's indeed simpler, I'll try that then, after having tried with sleep this night to be sure of the 2 scenarios Thanks Jacques Le 16/06/2017 à 13:53, Taher Alkhateeb a écrit :
Why would you add 30 sec sleep! The right way to do this is to change the command as follows: ./gradlew "ofbiz --shutdown" In other words, don't send the shutdown command to the background. On Jun 16, 2017 2:34 PM, <[email protected]> wrote: Author: jleroux Date: Fri Jun 16 11:34:38 2017 New Revision: 1798912 URL: http://svn.apache.org/viewvc?rev=1798912&view=rev Log: Improved: Adds 30 sec sleep after "--shutdown" to allow time for OFBiz to stop (OFBIZ-9414) No functional change, this is only for demos. OFBIZ-9414 is a WIP, to be checked tmrw Modified: ofbiz/tools/demo-backup/trunk-manual-only.sh Modified: ofbiz/tools/demo-backup/trunk-manual-only.sh URL: http://svn.apache.org/viewvc/ofbiz/tools/demo-backup/trunk- manual-only.sh?rev=1798912&r1=1798911&r2=1798912&view=diff ============================================================ ================== --- ofbiz/tools/demo-backup/trunk-manual-only.sh (original) +++ ofbiz/tools/demo-backup/trunk-manual-only.sh Fri Jun 16 11:34:38 2017 @@ -4,6 +4,7 @@ cd /home/ofbizDemo/trunk svn up ./gradlew pullAllPluginsSource ./gradlew "ofbizBackground --shutdown" +sleep 30 ./gradlew cleanAll ./gradlew loadAll ./gradlew svnInfoFooter
