PostgreSQL 19: Set TimeoutSec and TimeoutStartSec to infinity. Per https://github...
authorDevrim Gunduz <devrim@gunduz.org>
Thu, 18 Sep 2025 16:43:53 +0000 (11:43 -0500)
committerDevrim Gunduz <devrim@gunduz.org>
Thu, 18 Sep 2025 16:43:53 +0000 (11:43 -0500)
rpm/redhat/main/non-common/postgresql-19/main/postgresql-19.service

index c5dbf466eacc6e57c7bf1df3e57b1ac64c5b736b..67961b275fcf79e7909328bb44ff4ad57bab9e1f 100644 (file)
@@ -46,11 +46,9 @@ KillSignal=SIGINT
  
 # Do not set any timeout value, so that systemd will not kill postgres 
 # main process during crash recovery.
-TimeoutSec=0
-
-# 0 is the same as infinity, but "infinity" needs systemd 229
-TimeoutStartSec=0
+TimeoutSec=infinity
 
+TimeoutStartSec=infinity
 TimeoutStopSec=1h
 
 [Install]