Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaEPz-0007UL-UX for pgsql-general@arkaria.postgresql.org; Wed, 04 Nov 2020 08:45:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kaEPy-0001l0-4y for pgsql-general@arkaria.postgresql.org; Wed, 04 Nov 2020 08:45:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaEPx-0001kt-NR for pgsql-general@lists.postgresql.org; Wed, 04 Nov 2020 08:45:21 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kaEPk-0000M5-QM for pgsql-general@lists.postgresql.org; Wed, 04 Nov 2020 08:45:21 +0000 Received: by mail-wm1-x332.google.com with SMTP id h62so1537549wme.3 for ; Wed, 04 Nov 2020 00:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=qTDWdirrMHaBQhAQ3l+2er3S1uqpxUBKlVzpiKQ5epo=; b=IDOleaXM9/PXJYc46s8TOHzKEuw+XfGEGYuszal3sAhBmM5hVL+v55FZLmHvtJConC StN1f8HWd3fhU8mXPAKs9SUm9lbr7WvU2u+n2oZtD5GdOOTYRIrRDdnyZ2vFMRjffz4H GRbTej8FnnASU/VYqdJKukTJMA5nnUY2bLmbweaTUu9HGVskFghx15zXt2N+xMf/D7PE +KXk6vpYRSRfclcHcS9SlaIez+zhlcko0WPdGaw7tkwR8Alp4ZQFLVALhD5pbcHbhGRV nsoGRKf24b/akxtxGJQ3zl0fcvxuauZPPKx82s1goMYnUmjYcdMGWH3tJLoj5xutuiZd E1MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=qTDWdirrMHaBQhAQ3l+2er3S1uqpxUBKlVzpiKQ5epo=; b=BwmohKH1/S38Iqq1nccKZcT58e1QwLONm6KH/Azqu4UYbb6dodCKHW/pI8+9SITaWE eK4kHaEbIpKefJGszJCscWcZcZIo3xilXx7jSMh6528dl+DkX1BOljgzO0Jst0ov/9iG cw69xeVPoPAP3g+HFH8cLJJlY27T2PcRF2Hwla5zEkdUPqH3cNTHC+XGlOi5QGuTFV+S uJDP4/VUYoMY1KQpJ/dRBCUItCjjyVmJCiEef0mvshIKYp8UUx7PYNEfH/4N1UCsLQD8 JVw6IlBrsINgVl81w8iQ6VWCR6w73XIEQYWXxOkH7ttTPQIPGADzyHAnnEQy5/TwcFcb 8/BQ== X-Gm-Message-State: AOAM532QbRsGLgq+j3YyxznuiyxWE3kP8ejnanNfUTqMfYnbbt7czoNp ++ZUssHvNrZTxrOnq9wughH0lA== X-Google-Smtp-Source: ABdhPJwMMNJAugnaaSBvX9yXPrgt5X4uaNOip1u+b/vXGPZ+lunSWa88Ffl4I1SSUlnTzwg2L0LY8Q== X-Received: by 2002:a05:600c:608:: with SMTP id o8mr3323324wmm.86.1604479505798; Wed, 04 Nov 2020 00:45:05 -0800 (PST) Received: from localhost.localdomain (217-149-173-42.nat.highway.telekom.at. [217.149.173.42]) by smtp.gmail.com with ESMTPSA id x18sm1634153wrg.4.2020.11.04.00.45.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 00:45:05 -0800 (PST) Message-ID: Subject: Re: CentOS 7 yum package systemd bug? From: Laurenz Albe To: Doug Whitfield , pgsql-general@lists.postgresql.org Date: Wed, 04 Nov 2020 09:45:04 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 2020-11-03 at 09:42 -0600, Doug Whitfield wrote: > Unclear to me if this is a systemd bug or a Postgresql 12 bug, so I figured I would get some thoughts here before reporting in detail. > > It is pretty simple to reproduce. If you start your standby server with incorrect username or password > using ’systemctl start postgresql-12’ then systemctl just “hangs”. The replication issues get logged, > and it isn’t hard to fix, but it doesn’t seem like the appropriate outcome. If you make a syntax error, > the systemctl knows that you failed. Of course, this is better than having a normal exit status and > moving on with life only to find out your replication isn’t working, but it doesn’t seem right. > > To be clear, I already fixed the issue. I am just wondering if people think this is a systemd bug > or a PostgresQL bug or it is just a garbage in, garbage out sort of situation not worth filing anywhere. That must be the "Type=notify" from the service file. PostgreSQL notifies systemd as soon as it has started up, which didn't happen in your case. The idea is that later services that depend on PostgreSQL can rely on it being available. I think that is a good thing to have. I am no systemd expert, but as far as I know services are started in parallel, so it shouldn't block your boot process for other services that don't depend on PostgreSQL. The best place to discuss this would be the "pgsql-pkg-yum" list. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com