Re: Working systemd script?

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: Kanninen Anssi EXT <Anssi(dot)Kanninen(at)digia(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Working systemd script?
Date: 2020-11-27 12:58:56
Message-ID: CAOBaU_a33Lz_P61jExBOzri-QF-oz8DsYffXi3t2js0JM+Ffkg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, Nov 27, 2020 at 8:46 PM Kanninen Anssi EXT
<Anssi(dot)Kanninen(at)digia(dot)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).

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ankush Chawla 2020-11-29 18:15:55 install pgadmin4
Previous Message Kanninen Anssi EXT 2020-11-27 12:46:13 Working systemd script?