diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh index bba244d..fab95fe 100755 --- a/scripts/cleanup.sh +++ b/scripts/cleanup.sh @@ -18,7 +18,7 @@ REGISTRY_DIR="${REGISTRY_DIR:-/opt/registry}" DRY_RUN="${DRY_RUN:-false}" # Critical infrastructure protection -CRITICAL_CONTAINERS="harbor-core,harbor-db,harbor-jobservice,harbor-log,harbor-portal,nginx,redis,registry,registryctl,trivy-adapter,forgejo-runner" +CRITICAL_CONTAINERS="harbor-core,harbor-db,harbor-jobservice,harbor-log,harbor-portal,nginx,redis,registry,registryctl,trivy-adapter" CRITICAL_IMAGES="goharbor,forgejo-runner" CRITICAL_VOLUMES="harbor" CRITICAL_NETWORKS="harbor" @@ -63,6 +63,13 @@ check_critical_infrastructure() { log_success "All critical infrastructure containers are running" fi + # Check Forgejo runner service + if systemctl is-active --quiet forgejo-runner.service; then + log_success "Forgejo runner service is running" + else + log_warning "Forgejo runner service is not running" + fi + echo }