From: Thierry Parmentelat Date: Mon, 28 May 2018 02:50:28 +0000 (+0200) Subject: do not restart postgresql, just send SIGHUP signal thanks to pg_ctl reload X-Git-Tag: sfa-4.0-0~7 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=9824e3bee5aa26b029d5c7b259253d57f8277b2b do not restart postgresql, just send SIGHUP signal thanks to pg_ctl reload --- diff --git a/systemd/sfa-setup.sh b/systemd/sfa-setup.sh index d708abc9..035a1fe0 100755 --- a/systemd/sfa-setup.sh +++ b/systemd/sfa-setup.sh @@ -128,7 +128,8 @@ function start-db () { reload fi - systemctl restart postgresql + # tell postgresql that settings have changed + su - postgres bash -c "pg_ctl reload" ######## make sure we have the user and db created # user