Re: 'pg_ctl restart' does not terminate

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: twoflower <standa(dot)kurik(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: 'pg_ctl restart' does not terminate
Date: 2016-11-26 15:25:10
Message-ID: 757dfd34-f67d-e395-a8ad-fd42b0c70725@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/26/2016 07:15 AM, twoflower wrote:
> I am restarting the server using the following:
>
> su postgres -c "/usr/lib/postgresql/9.6/bin/pg_ctl -D /var/lib/postgresql/9.6/main -o '-c config_file=/etc/postgresql/9.6/main/postgresql.conf' restart"
>
> The server is restarted properly, but the the command never finishes.
> After the restart, it displays the server's logfile. Is this intended?

Do have logging set up in postgresql.conf to go to a file?

Even if you do have logging set to go to a file you will probably see a
couple of lines telling you it is redirecting to the file.

You also specify a log file to pg_ctl by using -l:

https://www.postgresql.org/docs/9.5/static/app-pg-ctl.html

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message twoflower 2016-11-26 15:47:54 Re: 'pg_ctl restart' does not terminate
Previous Message twoflower 2016-11-26 15:15:24 'pg_ctl restart' does not terminate