Thread: Working systemd script?
Hi!
How is the default systemd script working for you?
I run PostgreSQL in Centos 8.2 and have this issue:
1. Start PostgreSQL by systemctl.
2. Restart PostgreSQL by pg_ctl.
3. Now systemctl status shows PostgreSQL as dead.
Cheers!
- Anssi Kanninen
On Fri, Nov 27, 2020 at 8:46 PM Kanninen Anssi EXT <Anssi.Kanninen@digia.com> wrote: > > Hi! > > How is the default systemd script working for you? > > I run PostgreSQL in Centos 8.2 and have this issue: > > 1. Start PostgreSQL by systemctl. > > 2. Restart PostgreSQL by pg_ctl. > > 3. Now systemctl status shows PostgreSQL as dead. That's not a postgres issue. Systemd requires to start services itself, manually restarting services isn't supported. The short answer is to always use systemd to start/stop postgres (or never).