Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 480110

Summary: dev-db/pgbouncer-1.5.4 - init.d script fails to start due to error in variable name
Product: Gentoo Linux Reporter: Den <undying-m>
Component: [OLD] ServerAssignee: Johan Bergström <bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: pgsql-bugs, proxy-maint, titanofold
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Den 2013-08-07 12:42:43 UTC
/etc/conf.d/pgbouncer have a variable:
FORCE_QUIT_TIMEOUT=2

it used in init script but name in the init script is mismatched:
local seconds=$(( ${NICE_TIMEOUT} + ${FORCE_TIMEOUT} ))

Reproducible: Always

Steps to Reproduce:
1.install pgbouncer
2.modify config (optional)
3.start pgbouncer
Actual Results:  
pgbouncer failed to start

Expected Results:  
pgbouncer have to start

--- pgbouncer   2013-08-07 16:46:44.785705352 +0400
+++ pgbouncer   2013-08-07 16:39:11.308031445 +0400
@@ -39,7 +39,7 @@
 }
 
 stop() {
-    local seconds=$(( ${NICE_TIMEOUT} + ${FORCE_TIMEOUT} ))
+    local seconds=$(( ${NICE_TIMEOUT} + ${FORCE_QUIT_TIMEOUT} ))
     ebegin "Stopping PgBouncer (this can take up to ${seconds} seconds)"
 
     local retries=SIGINT/${NICE_TIMEOUT}
Comment 1 Den 2013-08-07 12:43:56 UTC
sorry, it`s failed to REstart
Comment 2 Aaron W. Swenson gentoo-dev 2013-08-18 19:37:19 UTC

*** This bug has been marked as a duplicate of bug 478142 ***