File: pg_autoctl_do_service_restart.rst

package info (click to toggle)
pg-auto-failover 2.0-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 5,156 kB
  • sloc: ansic: 58,245; python: 5,501; sql: 3,171; makefile: 593; sh: 35
file content (32 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.. _pg_autoctl_do_service_restart:

pg_autoctl do service restart
=============================

pg_autoctl do service restart - Run pg_autoctl sub-processes (services)

Synopsis
--------

pg_autoctl do service restart provides the following commands::

   pg_autoctl do service restart
    postgres     Restart the pg_autoctl postgres controller service
    listener     Restart the pg_autoctl monitor listener service
    node-active  Restart the pg_autoctl keeper node-active service


Description
-----------

It is possible to restart the ``pg_autoctl`` or the Postgres service without
affecting the other running service. Typically, to restart the
``pg_autoctl`` parts without impacting Postgres::

  $ pg_autoctl do service restart node-active --pgdata node1
  14:52:06 31223 INFO  Sending the TERM signal to service "node-active" with pid 26626
  14:52:06 31223 INFO  Service "node-active" has been restarted with pid 31230
  31230

The Postgres service has not been impacted by the restart of the
``pg_autoctl`` process.