IDEMPIERE-1677 error message when stopping with debian service script / based on patch from Thomas Bayen (tbayen)
This commit is contained in:
parent
01b4dd7c6d
commit
f01a0b4b1f
|
@ -90,14 +90,14 @@ stop () {
|
||||||
. $ENVFILE
|
. $ENVFILE
|
||||||
log_warning_msg "Trying direct kill with signal -15"
|
log_warning_msg "Trying direct kill with signal -15"
|
||||||
# try direct kill with signal 15, then signal 9
|
# try direct kill with signal 15, then signal 9
|
||||||
kill -15 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " "`
|
kill -15 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " " | sort -u`
|
||||||
sleep 5
|
sleep 5
|
||||||
getidempierestatus
|
getidempierestatus
|
||||||
if [ $IDEMPIERESTATUS -ne 0 ] ; then
|
if [ $IDEMPIERESTATUS -ne 0 ] ; then
|
||||||
log_success_msg "Service stopped with kill -15"
|
log_success_msg "Service stopped with kill -15"
|
||||||
else
|
else
|
||||||
echo "Trying direct kill with signal -9"
|
echo "Trying direct kill with signal -9"
|
||||||
kill -9 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " "`
|
kill -9 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " " | sort -u`
|
||||||
sleep 5
|
sleep 5
|
||||||
getidempierestatus
|
getidempierestatus
|
||||||
if [ $IDEMPIERESTATUS -ne 0 ] ; then
|
if [ $IDEMPIERESTATUS -ne 0 ] ; then
|
||||||
|
|
|
@ -84,14 +84,14 @@ stop () {
|
||||||
source $ENVFILE
|
source $ENVFILE
|
||||||
echo "Trying direct kill with signal -15"
|
echo "Trying direct kill with signal -15"
|
||||||
# Adempiere didn't finish - try direct kill with signal 15, then signal 9
|
# Adempiere didn't finish - try direct kill with signal 15, then signal 9
|
||||||
kill -15 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " "`
|
kill -15 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " " | sort -u`
|
||||||
sleep 5
|
sleep 5
|
||||||
getidempierestatus
|
getidempierestatus
|
||||||
if [ $IDEMPIERESTATUS -ne 0 ] ; then
|
if [ $IDEMPIERESTATUS -ne 0 ] ; then
|
||||||
echo_success
|
echo_success
|
||||||
else
|
else
|
||||||
echo "Trying direct kill with signal -9"
|
echo "Trying direct kill with signal -9"
|
||||||
kill -9 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " "`
|
kill -9 -`ps ax o pgid,command | grep -v grep | grep $IDEMPIERE_HOME | sed -e 's/^ *//g' | cut -f 1 -d " " | sort -u`
|
||||||
sleep 5
|
sleep 5
|
||||||
getidempierestatus
|
getidempierestatus
|
||||||
if [ $IDEMPIERESTATUS -ne 0 ] ; then
|
if [ $IDEMPIERESTATUS -ne 0 ] ; then
|
||||||
|
|
Loading…
Reference in New Issue