Skip to content

Commit

Permalink
Stop any running service
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeineb2001 authored Nov 30, 2024
1 parent 1df1fd4 commit d865529
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/catalog-service-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ jobs:
username: ${{ secrets.DEPLOYMENT_MACHINE_USER }}
password: ${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}
script: |
echo "Stopping any running service..."
pkill -f "java -jar service-catalog.jar" || echo "No service to stop."
sleep 10
echo "Starting Java service..."
Expand Down

0 comments on commit d865529

Please sign in to comment.