Re: server will not start (Debian) - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: server will not start (Debian)
Date
Msg-id 20191215143446.GA22463@hjp.at
Whole thread Raw
In response to Re: server will not start (Debian)  (stan <stanb@panix.com>)
List pgsql-general
On 2019-12-10 12:03:30 -0500, stan wrote:
> OK, here is the latets. If I do sudo systemctl start postgresql@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@12-main.service
● postgresql@12-main.service - PostgreSQL Cluster 12-main
   Loaded: loaded (/lib/systemd/system/postgresql@.service; enabled-runtime; vendor preset: enabled)
                                                            ^^^^^^^

If it isn't, enable it:

# systemctl enable postgresql@12-main.service

    hp



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

Attachment

pgsql-general by date:

Previous
From: "Abraham, Danny"
Date:
Subject: Is there any tool that provides Physical Backup plus PITR for asingle database ( Not the whole PG instance ) ?
Next
From: Adrian Klaver
Date:
Subject: Re: Is there any tool that provides Physical Backup plus PITR for asingle database ( Not the whole PG instance ) ?