Skip to content

Commit 01d1a1d

Browse files
committed
restart pod after orderly shutdown from console
1 parent 8f90428 commit 01d1a1d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

operator/src/main/resources/scripts/livenessProbe.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ if [ -f ${STATEFILE} ] && [ `grep -c "FAILED_NOT_RESTARTABLE" ${STATEFILE}` -eq
3434
trace "Error: WebLogic Server state is FAILED_NOT_RESTARTABLE."
3535
exit $RETVAL
3636
fi
37+
if [ -f ${STATEFILE} ] && [ `grep -c "SHUTDOWN" ${STATEFILE}` -eq 1 ]; then
38+
trace "Error: WebLogic Server state is SHUTDOWN."
39+
exit $RETVAL
40+
fi
3741
exit 0

0 commit comments

Comments
 (0)