Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394389 - dev-db/postgresql-server-9.1.2-r1 init.d script shutdown timeouts
Summary: dev-db/postgresql-server-9.1.2-r1 init.d script shutdown timeouts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 23:01 UTC by Dan Goodliffe
Modified: 2011-12-25 16:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Goodliffe 2011-12-11 23:01:01 UTC
According to conf.d/postgresql-9.1 the timeouts (rude, nice etc) are in seconds, but the init.d script multiples them by 1000 before passing them to start-stop-daemon's retry argument, which expects seconds, not milliseconds.
This didn't occur prior to r1 which changed the init scripts (addressing the /var/run to /run issues) and seemingly introducing this one.

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/postgresql-9.1 stop

Actual Results:  
start-stop-daemon waits 1000 times as long as would be expected.


This is a real pain during shutdown as you can't interrupt it.
Comment 1 Aaron W. Swenson gentoo-dev 2011-12-25 16:37:18 UTC
  25 Dec 2011; Aaron W. Swenson <titanofold@gentoo.org>
  +postgresql-server-8.2.23-r1.ebuild, +postgresql-server-8.3.17-r1.ebuild,
  +postgresql-server-8.4.10-r1.ebuild, +postgresql-server-9.0.6-r1.ebuild,
  +postgresql-server-9.1.2-r2.ebuild:
  Fixes bugs 395263, 394389, and 394159