Skip to content

Configure systemd service to send SIGQUIT on stop

What does this MR do?

Configure systemd service to send a SIGQUIT instead of the default SIGTERM.

Why was this MR needed?

According to https://gitlab.com/gitlab-org/gitlab-runner/-/blob/master/commands/multi.go#L724, the code expects a SIGQUIT signal to be sent, while systemd defaults to SIGTERM. When a SIGQUIT is not received, the code decides to do a forceful shutdown instead of a graceful one.

What's the best way to test this MR?

systemctl stop gitlab-runner
journalctl -eu gitlab-runner

Expect to see "graceful shutdown" instead of "forceful shutdown" in the journal log.

What are the relevant issue numbers?

Merge request reports