Created
May 28, 2025 15:40
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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