Skip to content

Commit 06f5a5b

Browse files
IngmarSteiniMichka
authored andcommitted
postgresql@18: add stop_timeout 120
When PostgreSQL is killed abruptly (SIGKILL), it leaves behind postmaster.pid and lock files in the data directory, preventing a subsequent start until those files are manually removed. A 120-second graceful stop timeout allows PostgreSQL to shut down cleanly before launchd escalates to a forced kill.
1 parent 7bcf889 commit 06f5a5b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Formula/p/postgresql@18.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def caveats
154154
keep_alive true
155155
log_path f.postgresql_log_path
156156
error_log_path f.postgresql_log_path
157+
stop_timeout 120
157158
working_dir HOMEBREW_PREFIX
158159
end
159160

0 commit comments

Comments
 (0)