Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 224589 Details for
Bug 310619
Enhanced error handling in postgresql runscript
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Implement meaningful start() error handling
postgresql.init-8.4-error-handling.patch (text/plain), 1.16 KB, created by
kfm
on 2010-03-21 22:16:46 UTC
(
hide
)
Description:
Implement meaningful start() error handling
Filename:
MIME Type:
Creator:
kfm
Created:
2010-03-21 22:16:46 UTC
Size:
1.16 KB
patch
obsolete
>--- postgresql.init-8.4 2010-01-26 22:05:25.000000000 +0000 >+++ /etc/init.d/postgresql-8.4 2010-03-21 22:08:49.077465660 +0000 >@@ -1,7 +1,7 @@ > #!/sbin/runscript >-# Copyright 1999-2009 Gentoo Foundation >+# Copyright 1999-2010 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 >-# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql-server/files/postgresql.init-8.4,v 1.4 2010/01/26 22:01:21 patrick Exp $ >+# $Header: $ > > opts="${opts} reload" > >@@ -32,12 +32,17 @@ > fi > > local retval >+ local errmsg > >- su -l ${PGUSER} \ >- -c "env PGDATA=\"${PGDATA}\" ${PG_EXTRA_ENV} /usr/lib/postgresql-8.4/bin/pg_ctl start ${WAIT_FOR_START} \ >- -o '--silent-mode=true ${PGOPTS}'" >+ errmsg=$(su -l ${PGUSER} \ >+ -c "env PGDATA=\"${PGDATA}\" /usr/lib/postgresql-8.4/bin/pg_ctl start ${WAIT_FOR_START} \ >+ -o '-d 1 ${PGOPTS}' 1>/dev/null") > retval=$? >- [ $retval -ne 0 ] && eend $retval && return $retval >+ >+ if [ $retval -ne 0 ] ; then >+ eend $retval $errmsg >+ return $retval >+ fi > > # The following is to catch the case of an already running server > # in which pg_ctl doesn't know to which server it connected to and false reports the server as 'up'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 310619
:
224589
|
224591