Add WorkingDirectory to systemd sample config. (#686)

Otherwise `initdb` fails because it tries to create the data directory in the root directory where the postgres user has no permissions.
This commit is contained in:
Björn Albers
2018-06-04 16:36:41 +02:00
committed by Alexander Kukushkin
parent 1de7c78c04
commit e5f2511764
+2
View File
@@ -11,6 +11,8 @@ Type=simple
User=postgres
Group=postgres
WorkingDirectory=~
# Where to send early-startup messages from the server
# This is normally controlled by the global default set by systemd
# StandardOutput=syslog