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

index 3051b5687e7b824846b13ee4d8acb4e1323ed872..17f7327a5d603ec496b32210d59fecfff224e043 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]