I'm using Postges 9.6 on Ubuntu Linux 16. I'm trying to figure out how the Postgres server was installed so I can figure out a command to start and stop it. It evidently isn't installed as a Linux service
[rails@server ~]$ sudo service postgresql status
Redirecting to /bin/systemctl status postgresql.service
Unit postgresql.service could not be found.
"which psql" reveals
[rails@server ~]$ which psql
/usr/bin/psql
I'm sort of at a loss for the next steps in figure out the command to start and stop it.
dpkg -l | grep postgres
say?locate postgres
? It might produce a lot of output.dpkg -S "/usr/pgsql-9.6/bin/postgres"
?