Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e35GV-0000R3-Tv for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Oct 2017 19:05:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e35GV-0005Ru-Gb for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Oct 2017 19:04:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e35Fl-0002sr-Fk for pgsql-bugs@postgresql.org; Fri, 13 Oct 2017 19:04:13 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e35Fh-0005QJ-Q3 for pgsql-bugs@postgresql.org; Fri, 13 Oct 2017 19:04:13 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id v9DJ42N14165; Fri, 13 Oct 2017 12:04:03 -0700 Subject: Re: BUG #14851: Systemd kills long-running recovery To: gdr@gdr.name, pgsql-bugs@postgresql.org References: <20171013091028.20254.74268@wrigleys.postgresql.org> From: John R Pierce Message-ID: <81d229fd-02f7-13a2-47ab-3bb9435f4c7d@hogranch.com> Date: Fri, 13 Oct 2017 12:03:57 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171013091028.20254.74268@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 10/13/2017 2:10 AM, gdr@gdr.name wrote: > Summary: I think the line "TimeoutSec=300" in the systemd unit file isn't > necessary > > Problem: I'm running a Postgres replication slave fresh after > pg_basebackup. It has about 12 hours worth of xlogs to replay. After 5 > minutes of "systemctl start postgresql-9.6" not returning to shell, systemd > kills the server in the middle of recovery. > > This is because of TimeoutSec=300 in the systemd unit file. I don't think > removing this statement will have any negative effects and I propose that > it's not included in the pgdg distribution. Maybe the unit code that detects the server is running needs some way of detecting its in recovery, and that the recovery is somehow progressing, and report that as 'running' ? -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs