$ systemctl restart postgresql-9.2.24
Failed to restart postgresql-9.2.24.service: Unit not found.
Postgresql – How to do Postgresql 9.2 version check in Linux
postgresqlpostgresql-9.2startup
Related Question
- PostgreSQL 9.2 – EBS Snapshot on AWS Guide
- PostgreSQL 9.2 – Troubleshooting Word Boundary Issues
- PostgreSQL – How to Enable Implicit Casts in PostgreSQL >=9.2
- PostgreSQL – How to Check Syntax of pg_hba.conf and Other Config Files on Ubuntu/Debian/Linux
- PostgreSQL – Unable to Restart After Moving pg_xlog to Different Partition
- PostgreSQL Services – Differences Between System Service and pg_ctl
Best Answer
Just run:
... and you'll be able to see what the service is actually called.
For example:
So, in this case, I can just use:
eg: