do not restart postgresql, just send SIGHUP signal thanks to pg_ctl reload
[sfa.git] / systemd / sfa-setup.sh
index d708abc..035a1fe 100755 (executable)
@@ -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