Re: failed to start postgresql service

From: Jerry Sievers <gsievers19(at)comcast(dot)net>
To: Gergely Buday <gbuday(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: failed to start postgresql service
Date: 2011-08-04 11:47:03
Message-ID: 87hb5xwg94.fsf@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gergely Buday <gbuday(at)gmail(dot)com> writes:

> Hi there,
>
> I created a directory /usr/local/pgsql/data to store the data of
> postgresql and ran
>
> $ initdb -D /usr/local/pgsql/data
>
> After that, I tried to start the postgresql service on my fedora 15 box via
>
> $ sudo service postgresql start
>
> but it has failed with the message
>
> Starting postgresql (via systemctl): Job failed. See system logs and
> 'systemctl status' for details.
> [FAILED]

Set and export the PGDATA variable in the rc script to the data
dirrectory path and try again.

Or try;

pg_ctl -D /usr/local/pgsql/data start

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres(dot)consulting(at)comcast(dot)net
p: 305.321.1144

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gergely Buday 2011-08-04 12:06:39 Re: failed to start postgresql service
Previous Message Gergely Buday 2011-08-04 11:28:43 failed to start postgresql service