File tree 2 files changed +23
-2
lines changed 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ JIRA_PID=$1
3
+ maxWaitTimeSecs=100
4
+ index=1
5
+ result=0
6
+ echo " ### Checking Jira shutdown"
7
+ kill $JIRA_PID
8
+ result=` if kill -0 $JIRA_PID 2> /dev/null; then echo 0; else echo 1; fi`
9
+ while [ $result -eq 0 ]
10
+ do
11
+ result=` if kill -0 $JIRA_PID 2> /dev/null; then echo 0; else echo 1; fi`
12
+ if [ $index -ge $maxWaitTimeSecs ]
13
+ then
14
+ echo " !!! JIRA STILL RUNNING AFTER $maxWaitTimeSecs SECONDS"
15
+ exit 1
16
+ fi
17
+ sleep 1
18
+ echo -" ### WAITING FOR JIRA KILL since $index Seconds"
19
+ index=$(( index+ 1 ))
20
+ done
21
+ echo " ### JIRA IS DOWN"
Original file line number Diff line number Diff line change 1
1
version https://git-lfs.github.com/spec/v1
2
- oid sha256:23679d8bc4f6033f42b728c1d9799f90701f6734a202f7b0e9ac668de1339ae9
3
- size 11794512
2
+ oid sha256:1ee7432672fb5be892d3017516cc1f7394b2cbc668bea1dbb8b550122adad315
3
+ size 10943810
You can’t perform that action at this time.
0 commit comments