Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360029 - dev-db/postgresql-server-8.3.14-r1 should give all cp commands on first try
Summary: dev-db/postgresql-server-8.3.14-r1 should give all cp commands on first try
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-03-22 23:45 UTC by Petteri Räty (RETIRED)
Modified: 2011-03-27 01:43 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 Petteri Räty (RETIRED) gentoo-dev 2011-03-22 23:45:15 UTC
pena linux # /etc/init.d/postgresql-8.3 restart
 * Stopping PostgreSQL (this can take up to 92 seconds) ...
server stopped                                                                                                                                                                                                          [ ok ]
 * File not found: /etc/postgresql-8.3/postgresql.conf
 * You may need to run:
 * cp /var/lib/postgresql/8.3/data/postgresql.conf /etc/postgresql-8.3/postgresql.conf
 * ERROR: postgresql-8.3 failed to start
pena linux # cp /var/lib/postgresql/8.3/data/postgresql.conf /etc/postgresql-8.3/postgresql.conf
pena linux # /etc/init.d/postgresql-8.3 restart
 * File not found: /etc/postgresql-8.3/pg_hba.conf
 * You may need to run:
 * cp /var/lib/postgresql/8.3/data/pg_hba.conf /etc/postgresql-8.3/pg_hba.conf
 * ERROR: postgresql-8.3 failed to start
pena linux # cp /var/lib/postgresql/8.3/data/pg_hba.conf /etc/postgresql-8.3/pg_hba.conf
pena linux # /etc/init.d/postgresql-8.3 start
 * File not found: /etc/postgresql-8.3/pg_ident.conf
 * You may need to run:
 * cp /var/lib/postgresql/8.3/data/pg_ident.conf /etc/postgresql-8.3/pg_ident.conf
 * ERROR: postgresql-8.3 failed to start
pena linux # cp /var/lib/postgresql/8.3/data/pg_ident.conf /etc/postgresql-8.3/pg_ident.conf
pena linux # /etc/init.d/postgresql-8.3 start
 * Starting PostgreSQL ...


This is stupid having me doing it one file at a time. Just print all the files that are missing on the first try.

dev-db/postgresql-server-8.3.14-r1
Comment 1 Aaron W. Swenson gentoo-dev 2011-03-27 01:43:02 UTC
Changed cp command to a mv hint in the initscript.
  27 Mar 2011; Aaron W. Swenson <titanofold@gentoo.org>
  +postgresql-server-8.2.20-r2.ebuild, +postgresql-server-8.3.14-r2.ebuild,
  +postgresql-server-8.4.7-r2.ebuild, +postgresql-server-9.0.3-r3.ebuild,
  +postgresql-server-9.1_alpha4-r1.ebuild:
  Fixes bugs 360031, 360029 and 359991. Removed --disable-threadsafety as
  scarabeus reported an issue related to it.