From 81265393d8137b6ff46a193c600b8fd8abb6e265 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 10 Apr 2020 09:29:54 -0700 Subject: [PATCH] Use HUP to stop gerrit in docker-compose Also add a 5 minute stop grace period. This lines up with the init script we were using when this was a systemd managed service. Change-Id: I5a92bb214b96447008ad570e176adda13c4ca0cb --- playbooks/roles/gerrit/templates/docker-compose.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/roles/gerrit/templates/docker-compose.yaml.j2 b/playbooks/roles/gerrit/templates/docker-compose.yaml.j2 index 8476b2d8de..540f4fa40d 100644 --- a/playbooks/roles/gerrit/templates/docker-compose.yaml.j2 +++ b/playbooks/roles/gerrit/templates/docker-compose.yaml.j2 @@ -5,6 +5,8 @@ services: image: {{ gerrit_container_image }} network_mode: host user: gerrit + stop_signal: SIGHUP + stop_grace_period: 5m volumes: {% for volume in gerrit_container_volumes %} - {{ volume }}