IDEMPIERE-2201 error "cp: cannot stat myEnvironment.sh: No such file or directory" when run idempiere as service

This commit is contained in:
Carlos Ruiz 2014-10-01 12:51:47 -05:00
parent ebb5e1d6a4
commit 611ca003e9
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ start () {
return 1
fi
echo -n "Starting ADempiere ERP: "
cd $IDEMPIERE_HOME/utils
source $ENVFILE
export LOGFILE=$IDEMPIERE_HOME/log/idempiere_`date +%Y%m%d%H%M%S`.log
su $IDEMPIEREUSER -c "mkdir -p $IDEMPIERE_HOME/log"
@ -81,6 +82,7 @@ stop () {
return 1
fi
echo -n "Stopping iDempiere ERP: "
cd $IDEMPIERE_HOME/utils
source $ENVFILE
echo "Trying direct kill with signal -15"
# Adempiere didn't finish - try direct kill with signal 15, then signal 9