Skip to content

Commit f01020d

Browse files
committed
kill -9 $PID 2>/dev/null || true
1 parent 4139888 commit f01020d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
openicf/bin/ConnectorServer.sh
4141
if [ "$RUNNER_OS" == "Linux" ]; then
4242
sudo apt-get install jsvc
43-
openicf/bin/openicf.sh start
44-
openicf/bin/openicf.sh stop
45-
rm -rf openicf/logs
4643
else
4744
brew install coreutils jsvc
4845
fi
46+
openicf/bin/openicf.sh start
47+
openicf/bin/openicf.sh stop
48+
rm -rf openicf/logs
4949
openicf/bin/ConnectorServer.sh /run &
5050
timeout 2m bash -c 'until grep -q "ConnectorServer listening on" openicf/logs/ConnectorServer.log ; do sleep 5; done'
5151
! grep " ERROR " openicf/logs/ConnectorServer.log

OpenICF-java-framework/openicf-zip/src/main/resources/bin/openicf.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ case "$1" in
9898

9999
# Stop the service
100100
jsvc_exec "-stop"
101-
101+
kill -9 $PID 2>/dev/null || true
102102
echo "The $DESC has stopped."
103103
;;
104104
restart)
@@ -108,7 +108,7 @@ case "$1" in
108108

109109
# Stop the service
110110
jsvc_exec "-stop"
111-
111+
kill -9 $PID 2>/dev/null || true
112112
# Start the service
113113
jsvc_exec "-wait 120"
114114

0 commit comments

Comments
 (0)