Skip to content

Instantly share code, notes, and snippets.

@VSharapov
Created May 28, 2025 15:40
Show Gist options
  • Select an option

  • Save VSharapov/086092d536d40aa7a4af6af74e2111bc to your computer and use it in GitHub Desktop.

Select an option

Save VSharapov/086092d536d40aa7a4af6af74e2111bc to your computer and use it in GitHub Desktop.
Send gitlab-runner main PID a SIGQUIT and wait for jobs to finish
#!/usr/bin/env bash
sudo kill -SIGQUIT $(systemctl show gitlab-runner.service -p MainPID | cut -d= -f2) && \
while systemctl is-active gitlab-runner.service ; do sleep 2; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment