Re: server will not start (Debian)

From: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: server will not start (Debian)
Date: 2019-12-15 14:34:46
Message-ID: 20191215143446.GA22463@hjp.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2019-12-10 12:03:30 -0500, stan wrote:
> OK, here is the latets. If I do sudo systemctl start postgresql(at)12-main
>
> the instance starts and works fine.
>
> However, if I reboot the machine, the instance is not started.

Check whether the service is enabled in systemd:

# systemctl status postgresql(at)12-main(dot)service
● postgresql(at)12-main(dot)service - PostgreSQL Cluster 12-main
Loaded: loaded (/lib/systemd/system/postgresql(at)(dot)service; enabled-runtime; vendor preset: enabled)
^^^^^^^

If it isn't, enable it:

# systemctl enable postgresql(at)12-main(dot)service

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp(at)hjp(dot)at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-12-15 16:32:31 Re: Is there any tool that provides Physical Backup plus PITR for a single database ( Not the whole PG instance ) ?
Previous Message Abraham, Danny 2019-12-15 14:33:44 Is there any tool that provides Physical Backup plus PITR for a single database ( Not the whole PG instance ) ?