Skip to content

Cleaner 'gitlab-ctl stop' for unicorn and logrotate

username-removed-5302 requested to merge unicorn-pgrp-term into master

Both of these could leave a dangling 'sleep' process, especially logrotate. We use a Runit 'control' script to intercept SIGTERM and send it to the process group instead of the main process. Because we use chpst -P, the main process is a process group leader so this works.

I had to stick the logrotate 'run' script in a wrapper for this to work.

Merge request reports