pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sbob <sbob@quadratum-braccas.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: using pg_ctl over ssh hangs
Date: Thu, 19 Oct 2023 19:24:37 -0600
Message-ID: <b4603ebf-afef-4b6a-af75-de7fd26c9924@quadratum-braccas.com> (raw)

All


I am wanting to run pg_ctl as a command over ssh, however when I pass 
start it hangs until I do a Ctl-C


This works fine:

$ node3=172.16.171.132
$ ssh -T postgres@${node3} "/usr/pgsql-14/bin/pg_ctl -D 
/var/lib/pgsql/14/data stop"
waiting for server to shut down.... done
server stopped
$

I am immediately returned to a command prompt

However , this does not return me to a command prompt until I do a Ctl-C:


$ node3=172.16.171.132


$ ssh -T postgres@${node3} "/usr/pgsql-14/bin/pg_ctl -D 
/var/lib/pgsql/14/data start"
waiting for server to start....2023-10-19 19:23:42.947 MDT [2053] LOG: 
  redirecting log output to logging collector process
2023-10-19 19:23:42.947 MDT [2053] HINT:  Future log output will appear 
in directory "log".
done
server started

^C
$



Thanks in advance

view thread (4+ messages)  latest in thread

Message-ID: <b4603ebf-afef-4b6a-af75-de7fd26c9924@quadratum-braccas.com>
Permalink:  ../b4603ebf-afef-4b6a-af75-de7fd26c9924@quadratum-braccas.com/
Also on:    postgresql.org/message-id/b4603ebf-afef-4b6a-af75-de7fd26c9924@quadratum-braccas.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: sbob@quadratum-braccas.com, pgsql-admin@lists.postgresql.org
  Subject: Re: using pg_ctl over ssh hangs
  In-Reply-To: <b4603ebf-afef-4b6a-af75-de7fd26c9924@quadratum-braccas.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox