PG_AUTOCTL_STOP(1)
π PG_AUTOCTL STOP(1) π
okay bestie, so this is the pg_autoctl stop page from the pg_auto_failover manual, and it's genuinely so simple it's iconic. two names for the same energy:
pg_autoctl stopβ pg_autoctl stoppg_autoctl stopβ signal the pg_autoctl service for it to stop
β¨ SYNOPSIS β¨
This command stops the processes you need to run a monitor node or a keeper node, and which one it stops depends on the configuration file that belongs to the --pgdata option or the PGDATA environment variable. it just knows. main character detective energy π
usage: pg_autoctl stop [ --pgdata --fast --immediate ]
--pgdata path to data directory
--fast fast shutdown mode for the keeper
--immediate immediate shutdown mode for the keeper
πΈ DESCRIPTION πΈ
The pg_autoctl stop command goes and finds the PID of the running service for whatever --pgdata you gave it, and if that process is still running, it sends a SIGTERM signal to the process. very "i'm not mad i'm just sending a signal" of it π
When pg_autoclt receives a shutdown signal, a shutdown sequence is triggered. Depending on which signal it got, an operation that's already been started (like a state transition) is either run to completion, stopped at the next opportunity, or stopped immediately even when it's in the middle of the transition. so like... it might finish its sentence, or it might just leave mid-text. depends on the vibe of the signal π¦
π OPTIONS π
--pgdataβ location of the Postgres node being managed locally. Defaults to the environment variablePGDATA. Also: use--monitorto connect to a monitor from anywhere, rather than the monitor URI used by a local Postgres node managed withpg_autoctl.--fastβ Fast Shutdown mode forpg_autoctl. Sends theSIGINTsignal to the running service, which is the same as usingC-con an interactive process running as a foreground shell job. yes it's literally the ctrl-c experience, no cap π--immediateβ Immediate Shutdown mode forpg_autoctl. Sends theSIGQUITsignal to the running service. it's giving no patience whatsoever.
π§ ENVIRONMENT π§
PGDATAβ Postgres directory location. Can be used instead of the--pgdataoption.PG_AUTOCTL_MONITORβ Postgres URI to connect to the monitor node, can be used instead of the--monitoroption.XDG_CONFIG_HOMEβ thepg_autoctlcommand stores its configuration files in the standard placeXDG_CONFIG_HOME. See the XDG Base Directory Specification.XDG_DATA_HOMEβ thepg_autoctlcommand stores its internal states files in the standard placeXDG_DATA_HOME, which defaults to~/.local/share. See the XDG Base Directory Specification.
π AUTHOR π
Microsoft
π COPYRIGHT π
Copyright (c) Microsoft Corporation. All rights reserved.
okay that's the whole page, you ate it, go stop some services responsibly π«Ά
this was pg_auto_failover, version 2.1, dated Jan 18, 2025 β mwah, bye bestie! πβ¨π
π¦ where this page comes from
- fedora 43: pg_auto_failover 2.1-6.fc42 Β· Apache-1.0
- fedora 44: pg_auto_failover 2.1-6.fc42 Β· Apache-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms