Skip to content

Commit b9a311e

Browse files
committed
service: disable start/stop killing timeout policy
* postgresql.service.in (TimeoutSec): Set to 0 (infinity).
1 parent 925b34c commit b9a311e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ New in 8.0 version:
66
--with-systemd, which simplifies the start/stop handling (we can
77
stop shipping postgresql-ctl wrapper, e.g.).
88

9+
* systemd service doesn't have the artificial timeout for PostgreSQL
10+
server start/stop (was 10 minutes before).
11+
912
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1013

1114
New in 7.0 version:

postgresql.service.in

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ ExecReload=/bin/kill -HUP $MAINPID
3737
KillMode=mixed
3838
KillSignal=SIGINT
3939

40-
# Give a reasonable amount of time for the server to start up/shut down.
41-
# Ideally, the timeout for starting PostgreSQL server should be handled more
42-
# nicely by pg_ctl in ExecStart, so keep its timeout smaller than this value.
43-
TimeoutSec=300
40+
# No artificial start/stop timeout (rhbz#1525477, pgrpms#2786).
41+
TimeoutSec=0
4442

4543
[Install]
4644
WantedBy=multi-user.target

0 commit comments

Comments
 (0)