Skip to content

Commit 65cd3b4

Browse files
committed
test log in service
1 parent f01020d commit 65cd3b4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
brew install coreutils jsvc
4545
fi
4646
openicf/bin/openicf.sh start
47+
timeout 2m bash -c 'until grep -q "ConnectorServer listening on" openicf/logs/ConnectorServer.log ; do sleep 5; done'
48+
! grep " ERROR " openicf/logs/ConnectorServer.log || cat openicf/logs/ConnectorServer.log
4749
openicf/bin/openicf.sh stop
4850
rm -rf openicf/logs
4951
openicf/bin/ConnectorServer.sh /run &

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-
kill -9 $PID 2>/dev/null || true
101+
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-
kill -9 $PID 2>/dev/null || true
111+
112112
# Start the service
113113
jsvc_exec "-wait 120"
114114

0 commit comments

Comments
 (0)