Re: Service not starting on Ubuntu 15.04 - Mailing list pgsql-general

From Lasse Westh-Nielsen
Subject Re: Service not starting on Ubuntu 15.04
Date
Msg-id CAFyxdeT0MXLmidLMt4MdLAbhE-cG+E_65gLPuW9EqXT--ejCHA@mail.gmail.com
Whole thread Raw
In response to Re: Service not starting on Ubuntu 15.04  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Service not starting on Ubuntu 15.04
List pgsql-general
Adrian,

The service starts once the package is installed.

 - It did that on Ubuntu14.04
 - On Ubuntu 15.04, `sudo service postgresql status` _claims_ it has been started.



On Mon, Oct 26, 2015 at 2:57 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 10/26/2015 07:08 AM, Lasse Westh-Nielsen wrote:
Adrian,

Thanks. I know about the systemd change, and indeed the postgres package
I end up with _has_ systemd integration already:

    $ cat /etc/systemd/system/multi-user.target.wants/postgresql.service
    # systemd service for managing all PostgreSQL clusters on the
    system. This
    # service is actually a systemd target, but we are using a service since
    # targets cannot be reloaded.

    [Unit]
    Description=PostgreSQL RDBMS

    [Service]
    Type=oneshot
    ExecStart=/bin/true
    ExecReload=/bin/true
    RemainAfterExit=on

    [Install]
    WantedBy=multi-user.target

The thing above the above is I do not see anything that starts Postgres.

Are you sure the same script is being called in cloud-init and outside of it?

Or more to the point, what script actually starts Postgres?




--
Adrian Klaver
adrian.klaver@aklaver.com

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Service not starting on Ubuntu 15.04
Next
From: Lasse Westh-Nielsen
Date:
Subject: Re: Service not starting on Ubuntu 15.04