From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Marian Forums <marianforums@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Question about servicescript for stopping and starting postgresql instance
Date: Tue, 30 Oct 2018 06:29:41 -0700
Message-ID: <ca002b1f-7c78-d06b-2d0c-4837fe1f9c61@aklaver.com> (raw)
In-Reply-To: <CAO42mcK+iWP_yWOBGUHWhu3Embjf6DUSe3LZubqPGfK_WQr7SA@mail.gmail.com>
References: <CAO42mcK+iWP_yWOBGUHWhu3Embjf6DUSe3LZubqPGfK_WQr7SA@mail.gmail.com>
On 10/30/18 5:09 AM, Marian Forums wrote:
> Hi,
>
> I have a question about creating a service script to start/stop/status
> postgresql instance ( version 9.6.8) on Red Hat 7.
How did you install Postgres on the machine?
>
> I have read the explanation of how to create such a service script on
> https://www.postgresql.org/docs/9.6/static/server-start.html .
Did you use the example at the above link or did you write your own?
If you wrote your own can you show it?
>
> Stopping and Starting works.
> However when I stop the service with:
> systemctl stop postgresq.service and than ask for the status with
> systemctl status postgresql.service, the service gets started again.
>
> Is this normal functionality on Red Hat 7?
> I have searched on the Internet ( including the Red Hat site) for a
> parameter to replace this behavior, but did not find anything.
>
> Your help is much appreciated.
> Thanks in advance.
> Regards,
> Marian
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, marianforums@gmail.com
Subject: Re: Question about servicescript for stopping and starting postgresql instance
In-Reply-To: <ca002b1f-7c78-d06b-2d0c-4837fe1f9c61@aklaver.com>
References: <CAO42mcK+iWP_yWOBGUHWhu3Embjf6DUSe3LZubqPGfK_WQr7SA@mail.gmail.com> <ca002b1f-7c78-d06b-2d0c-4837fe1f9c61@aklaver.com>
* 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