1PG_AUTOCTL STOP(1) pg_auto_failover PG_AUTOCTL STOP(1)
2
3
4
6 pg_autoctl stop - pg_autoctl stop
7
8 pg_autoctl stop - signal the pg_autoctl service for it to stop
9
11 This commands stops the processes needed to run a monitor node or a
12 keeper node, depending on the configuration file that belongs to the
13 --pgdata option or PGDATA environment variable.
14
15 usage: pg_autoctl stop [ --pgdata --fast --immediate ]
16
17 --pgdata path to data directory
18 --fast fast shutdown mode for the keeper
19 --immediate immediate shutdown mode for the keeper
20
22 The pg_autoctl stop commands finds the PID of the running service for
23 the given --pgdata, and if the process is still running, sends a
24 SIGTERM signal to the process.
25
26 When pg_autoclt receives a shutdown signal a shutdown sequence is trig‐
27 gered. Depending on the signal received, an operation that has been
28 started (such as a state transition) is either run to completion,
29 stopped as the next opportunity, or stopped immediately even when in
30 the middle of the transition.
31
33 --pgdata
34 Location of the Postgres node being managed locally. Defaults to
35 the environment variable PGDATA. Use --monitor to connect to a
36 monitor from anywhere, rather than the monitor URI used by a lo‐
37 cal Postgres node managed with pg_autoctl.
38
39 --fast Fast Shutdown mode for pg_autoctl. Sends the SIGINT signal to
40 the running service, which is the same as using C-c on an inter‐
41 active process running as a foreground shell job.
42
43 --immediate
44 Immediate Shutdown mode for pg_autoctl. Sends the SIGQUIT signal
45 to the running service.
46
48 PGDATA
49 Postgres directory location. Can be used instead of the --pgdata op‐
50 tion.
51
52 PG_AUTOCTL_MONITOR
53 Postgres URI to connect to the monitor node, can be used instead of
54 the --monitor option.
55
56 XDG_CONFIG_HOME
57 The pg_autoctl command stores its configuration files in the stan‐
58 dard place XDG_CONFIG_HOME. See the XDG Base Directory Specifica‐
59 tion.
60
61 XDG_DATA_HOME
62 The pg_autoctl command stores its internal states files in the stan‐
63 dard place XDG_DATA_HOME, which defaults to ~/.local/share. See the
64 XDG Base Directory Specification.
65
67 Microsoft
68
70 Copyright (c) Microsoft Corporation. All rights reserved.
71
72
73
74
752.0 Sep 13, 2023 PG_AUTOCTL STOP(1)