Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkXE0-00073X-6q for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Sep 2016 14:01:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkXDz-0003gc-Q4 for pgsql-bugs@arkaria.postgresql.org; Thu, 15 Sep 2016 14:01:11 +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 1bkQ9Z-0005u8-Nj for pgsql-bugs@postgresql.org; Thu, 15 Sep 2016 06:28:09 +0000 Received: from grace.univie.ac.at ([2001:62a:4:25::25:115]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bkQ9W-0002Yz-DW for pgsql-bugs@postgresql.org; Thu, 15 Sep 2016 06:28:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: References:Subject:CC:To:MIME-Version:From:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9KB6FJGRR7SRLxUeTp3p+gOobevuyagxoqaWB/JTq2s=; b=Mne1DESifmzb6o7btbcqz4MsuE zHUVB1Nnem1NzEWkYjvduyBzsjFYx9+86tqY+xOYZK2k0LmrE525VeK7dJ2fSg5Ijmha57/Ozfuif 1s8CwMVOB/xRHYqbBPAwlaeuuv1Ry0cHhEQrrRpSirxlg7mHVoBLwy3W8N2bQB7bmwMk=; Received: from justin.univie.ac.at ([131.130.3.111] helo=justin.univie.ac.at) by grace.univie.ac.at with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1bkQ9T-0004x2-Lt; Thu, 15 Sep 2016 08:28:03 +0200 Received: from wsap.cc.univie.ac.at ([131.130.249.17] helo=[10.0.2.15]) by justin.univie.ac.at with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1bkQ9T-0002it-CB; Thu, 15 Sep 2016 08:28:03 +0200 Message-ID: <57DA3F72.4010408@univie.ac.at> Date: Thu, 15 Sep 2016 08:28:02 +0200 From: Andreas Papst User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Peter Eisentraut CC: pgsql-bugs@postgresql.org Subject: Re: BUG #14320: systemd terminates postgresql hot standby instance 90 seconds after start References: <20160909105014.20024.66435@wrigleys.postgresql.org> <535998f9-2ca3-db8d-8747-f4b89b0b125e@2ndquadrant.com> <57D8F84E.702@univie.ac.at> <1bc537c4-4d6f-d14e-ad89-873df1b7f77f@2ndquadrant.com> In-Reply-To: <1bc537c4-4d6f-d14e-ad89-873df1b7f77f@2ndquadrant.com> X-Enigmail-Version: 1.6a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Univie-Virus-Scan: scanned by ClamAV on justin.univie.ac.at X-Pg-Spam-Score: -6.5 (------) 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 Hello, On 09/15/2016 02:19 AM, Peter Eisentraut wrote: > Something unusual is going on. Try running the commands in the unit > file by hand and see whether they succeed or print additional > diagnostics. Check the systemd logs, if any. The reason the process > ends up getting killed is that systemd thinks it has not started > successfully. > yeah, when systemd's startup process is running into it's timeout it terminates postgres process. If I change the timeout threshold to unlimited, postgres operates for ever. And as I wrote, when I send Postgres a signal, i.e. `systemctl reload postgresql´, postgres process detaches, the blocked startup script is freed and returns success to systemd. No more logs are available. Thanks Andreas -- ________________________________________________________________________ Andreas Papst | Vienna University Computer Center | E-Mail: andreas.papst@univie.ac.at Universitaetsstrasse 7 | Phone: +43 1 4277 / 140 36 A-1010 Vienna, Austria, Europe | Fax.: +43 1 4277 / 8 140 36 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs