summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml18
1 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0f9bc699..a7d0e715 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -101,12 +101,18 @@ jobs:
# https://github.com/actions/runner-images/issues/2821
- name: Kill mono process
run: |
- sudo systemctl stop mono-xsp4.service
- sudo systemctl mask mono-xsp4.service
- sudo systemctl status mono-xsp4.service || true
- PID=$(sudo lsof -t -i :8084)
- echo "Killing PID $PID"
- sudo kill -9 $PID
+ set +e
+ sudo systemctl status mono-xsp4.service
+ if [ $? -ne 0 ]; then
+ true
+ else
+ sudo systemctl stop mono-xsp4.service
+ sudo systemctl mask mono-xsp4.service
+ sudo systemctl status mono-xsp4.service
+ PID=$(sudo lsof -t -i :8084)
+ echo "Killing PID $PID"
+ sudo kill -9 $PID
+ fi
##
## njs