failed to start postgresql service

From: Gergely Buday <gbuday(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: failed to start postgresql service
Date: 2011-08-04 11:28:43
Message-ID: CA+3iOznuY_xw7=BqyBaXdE+=TingfFr7EgYZdLie=7vSE5-A1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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]

I do not see any postgresql related log or dir in /var/log, and
/var/log/messages say

Aug 4 13:07:20 homeship systemd[1]: postgresql.service: control
process exited, code=exited status=1
Aug 4 13:07:20 homeship systemd[1]: Unit postgresql.service entered
failed state.

which is not very useful. Systemctl says

$ systemctl status postgresql.service
postgresql.service - LSB: start and stop PostgreSQL server
Loaded: loaded (/etc/rc.d/init.d/postgresql)
Active: failed since Thu, 04 Aug 2011 13:27:28 +0200; 19s ago
Process: 4692 ExecStart=/etc/rc.d/init.d/postgresql start
(code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/postgresql.service

which is not telling what has failed, again.

How can I learn more about why it has failed?

- Gergely

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jerry Sievers 2011-08-04 11:47:03 Re: failed to start postgresql service
Previous Message Adarsh Sharma 2011-08-04 10:26:33 Re: Server Not Running