pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: server will not start (Debian)
Date: Sun, 15 Dec 2019 15:34:46 +0100
Message-ID: <20191215143446.GA22463@hjp.at> (raw)
In-Reply-To: <20191210170330.GA432@panix.com>
References: <20191210114823.GA18735@panix.com>
	<20191210133635.GA24804@panix.com>
	<CALL-XeOD5CRqD58SEZqyWpAyem4m-pshT84JBsZngMKcr6apLQ@mail.gmail.com>
	<20191210153255.GA25615@panix.com>
	<2887a700-04ec-2168-4039-08752025352c@aklaver.com>
	<5d82c056-49a0-0512-2915-4aac6b25802b@rodonnell.ie>
	<20191210170330.GA432@panix.com>

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!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (11+ messages)

Message-ID: <20191215143446.GA22463@hjp.at>
Permalink:  ../20191215143446.GA22463@hjp.at/
Also on:    postgresql.org/message-id/20191215143446.GA22463@hjp.at

 · 

reply

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: hjp-pgsql@hjp.at
  Subject: Re: server will not start (Debian)
  In-Reply-To: <20191215143446.GA22463@hjp.at>
  References: <20191210114823.GA18735@panix.com> <20191210133635.GA24804@panix.com> <CALL-XeOD5CRqD58SEZqyWpAyem4m-pshT84JBsZngMKcr6apLQ@mail.gmail.com> <20191210153255.GA25615@panix.com> <2887a700-04ec-2168-4039-08752025352c@aklaver.com> <5d82c056-49a0-0512-2915-4aac6b25802b@rodonnell.ie> <20191210170330.GA432@panix.com> <20191215143446.GA22463@hjp.at>

* 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