Skip to content
3 changes: 3 additions & 0 deletions src/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# binary names
BINARY_NAME__POSTGRES = "postgres"
BINARY_NAME__PG_CTL = "pg_ctl"

# names for dirs in base_dir
DATA_DIR = "data"
Expand Down Expand Up @@ -44,5 +45,7 @@
LOGICAL_REPL_MAX_CATCHUP_ATTEMPTS = 60

PG_CTL__STATUS__OK = 0

PG_CTL__STATUS__FAILED = 1
PG_CTL__STATUS__NODE_IS_STOPPED = 3
PG_CTL__STATUS__BAD_DATADIR = 4
6 changes: 5 additions & 1 deletion src/impl/platforms/linux/internal_platform_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,13 @@ def _is_file_not_found_exception(e: Exception) -> bool:
if isinstance(e, FileNotFoundError):
return True

if isinstance(e, ProcessLookupError):
return True

if isinstance(e, ExecUtilException):
if e.exit_code == 2:
if e.exit_code == 1:
return True
return False

return False

Expand Down
Loading
Loading