From: Samed YILDIRIM <samed@reddoc.net>
To: ragini vyas <vyas.ragini@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Postgresql service starts and stops immediately
Date: Tue, 27 Feb 2018 15:06:58 +0300
Message-ID: <96031519733218@web16j.yandex.ru> (raw)
In-Reply-To: <CANHNXLn3U_OkidOVqDZr=JWNug54i6ukx+tK=9COk5TOW-9=sg@mail.gmail.com>
References: <CANHNXLn3U_OkidOVqDZr=JWNug54i6ukx+tK=9COk5TOW-9=sg@mail.gmail.com>
<div>Hi Ragini,</div><div> </div><div>Are you using systemctl or /etc/init.d scripts to start PostgreSQL? If yes, could you please try using pg_ctl. pg_ctl command usage and path of it is like following.</div><div> </div><div> </div><div>On Centos 7 (wiith repo installation):</div><div>/usr/pgsql-9.3/bin/pg_ctl -D /var/lib/pgctl/9.3/data start</div><div> </div><div>On Debian 8 (with repo installation):</div><div>/usr/lib/postgresql/9.3/bin/pg_ctl -D /var/lib/postgresql/9.3/data/ -c config_file=/etc/postgresql/9.3/main/postgresql.conf start</div><div> </div><div>Best regards.</div><div> </div><div>İyi çalışmalar.</div><div>Samed YILDIRIM</div><div> </div><div> </div><div> </div><div>27.02.2018, 11:42, "ragini vyas" <vyas.ragini@gmail.com>:</div><blockquote type="cite"><div>Hi,<div> </div><div>I have Postgresql version 9.3.13 installed. After an unexpected reboot, postgresql service doesn't start. I get the error messgae "Postgresql service started and stopped immediately".</div><div> </div><div>I deleted postmaster.pid and postmaster.opts files and tried starting the service. When I do this, service takes some time and then gives the same error. </div><div> </div><div>Please help.</div><div> </div><div> <div><div><div><div><div><div><div>Regards</div><div>Ragini Vyas</div><div><span>7507-999-299</span></div></div></div></div></div></div></div></div></div></blockquote>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: samed@reddoc.net, vyas.ragini@gmail.com
Subject: Re: Postgresql service starts and stops immediately
In-Reply-To: <96031519733218@web16j.yandex.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox