'Generic Commit'

This commit is contained in:
Your Name
2025-06-01 16:21:54 +12:00
parent 86bae74779
commit 9ab3b8433a
5 changed files with 14 additions and 12 deletions

View File

@ -5,12 +5,11 @@ source "${AGENT_PATH}/common.sh"
_check_required_env_vars "SERVER" "SERVICE" "GITEA_RUNNER_DIRECTORY"
# kill the act_runner process
pkill -f "${GITEA_RUNNER_DIRECTORY}/act_runner"
echo "act_runner stopped"
if pgrep -f "${GITEA_RUNNER_DIRECTORY}/act_runner" > /dev/null; then
pkill -f "${GITEA_RUNNER_DIRECTORY}/act_runner"
echo "act_runner stopped"
else
echo "act_runner is not running"
fi
echo "Stopped $SERVICE"