Hot answers tagged

1

Copy the postgresql unit file: cp /usr/lib/systemd/system/postgresql.service \ /etc/systemd/system/postgresql-userxy.service Then edit postgresql-userxy.service and add User= and WorkingDirectory= to the [Service] section. After that enable the service: systemctl daemon-reload systemctl enable postgresql-userxy.service



Only top voted, non community-wiki answers of a minimum length are eligible