Skip to content

Commit

Permalink
service: disable start/stop killing timeout policy
Browse files Browse the repository at this point in the history
* postgresql.service.in (TimeoutSec): Set to 0 (infinity).
  • Loading branch information
praiskup committed Dec 15, 2017
1 parent 925b34c commit b9a311e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ New in 8.0 version:
--with-systemd, which simplifies the start/stop handling (we can
stop shipping postgresql-ctl wrapper, e.g.).

* systemd service doesn't have the artificial timeout for PostgreSQL
server start/stop (was 10 minutes before).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

New in 7.0 version:
Expand Down
6 changes: 2 additions & 4 deletions postgresql.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
KillSignal=SIGINT

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

[Install]
WantedBy=multi-user.target

0 comments on commit b9a311e

Please sign in to comment.