From 2fc01137b7267370e854fc0c35401c9aab8c6650 Mon Sep 17 00:00:00 2001 From: Jan Keirse Date: Tue, 5 Apr 2016 16:47:21 +0200 Subject: [PATCH] add killmode to avoid restart issues This fixes https://github.com/zalando/patroni/issues/167 --- extras/startup-scripts/patroni.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extras/startup-scripts/patroni.service b/extras/startup-scripts/patroni.service index fdd7558b..820e64c8 100644 --- a/extras/startup-scripts/patroni.service +++ b/extras/startup-scripts/patroni.service @@ -17,6 +17,9 @@ Group=postgres ExecStart=/bin/patroni /etc/patroni.yml +# only kill the patroni process, not it's children, so it will gracefully stop postgres +KillMode=process + # Give a reasonable amount of time for the server to start up/shut down TimeoutSec=10