Adding reload functionality (#726)

This allows the config to be reloaded via `systemctl reload patroni`, sending SIGHUP to the patroni process. Tested on CentOS.
This commit is contained in:
Don Seiler
2018-06-30 23:16:42 +02:00
committed by Alexander Kukushkin
parent 4128cba628
commit 4e8709b266
+3
View File
@@ -19,6 +19,9 @@ WorkingDirectory=~
ExecStart=/bin/patroni /etc/patroni.yml
# Send HUP to reload from patroni.yml
ExecReload=/bin/kill -s HUP $MAINPID
# only kill the patroni process, not it's children, so it will gracefully stop postgres
KillMode=process