From e2b15eacdffa35775d843112ae863160d585ba94 Mon Sep 17 00:00:00 2001 From: sergey grinko Date: Mon, 28 Sep 2020 13:26:17 +0300 Subject: [PATCH] Update patroni.service (#1702) If "WorkingDirectory" not set, defaults to the respective user's home directory if run as user. Close #1688 --- extras/startup-scripts/patroni.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/startup-scripts/patroni.service b/extras/startup-scripts/patroni.service index fb23ad95..b2289f75 100644 --- a/extras/startup-scripts/patroni.service +++ b/extras/startup-scripts/patroni.service @@ -14,7 +14,8 @@ Group=postgres # Read in configuration file if it exists, otherwise proceed EnvironmentFile=-/etc/patroni_env.conf -WorkingDirectory=~ +# the default is the user's home directory, and if you want to change it, you must provide an absolute path. +# WorkingDirectory=/home/sameuser # Where to send early-startup messages from the server # This is normally controlled by the global default set by systemd