Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJnKT-0003yy-MR for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Nov 2017 21:22:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJnKT-00011U-7M for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Nov 2017 21:22:09 +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 1eJnKS-000118-Pl for pgsql-hackers@lists.postgresql.org; Tue, 28 Nov 2017 21:22:09 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eJnKP-0003e1-KC for pgsql-hackers@postgreSQL.org; Tue, 28 Nov 2017 21:22:08 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 641272089E; Tue, 28 Nov 2017 16:22:03 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Tue, 28 Nov 2017 16:22:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=w80Kc5 Bt3VZrFms2z9MT3sYEvxkq0/HQi0Dj0o+99fA=; b=r82A/GwlHO2URxfIsN+sxo 0G9gyOD7a0vmlJFk50WVBHUwuS01289BaEweEeWQolmwBfu6GqTm1jv+i29kuID0 XJTgmGuQNPT5Ede8zJ/1bzB9PR3rdbKivULvfd/IdqoP+LqfyY1ShLuZlTHfkQ3p gRNl1/fc/wOAooCFUHiRZe0plRhGTZptCOeXjyR36tALx1T7KWzx492LITMW0nop 7/ytdqCydVEIxia0ZilN+8rp0RAsRTN3AnJprN1hIMoBqn495OrzQbhOplacTOdk OdBjdB+SYRMWYDCaMdo6xeg2XBNV2Iv4vLDDxrLvvWt7QL5B0wvNNEgFmsbDwdiQ == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 0DACE7E56E; Tue, 28 Nov 2017 16:22:03 -0500 (EST) Subject: Re: Updated macOS start scripts To: Mark Dilger , Tom Lane References: <31338.1510763554@sss.pgh.pa.us> <6D443E39-13C2-4185-9FE4-B5CB416AB06E@gmail.com> <21689.1510772433@sss.pgh.pa.us> <173420E2-64DB-4802-9EB2-AEFB11F46045@gmail.com> Cc: pgsql-hackers@postgreSQL.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 28 Nov 2017 16:22:02 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <173420E2-64DB-4802-9EB2-AEFB11F46045@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/28/17 14:07, Mark Dilger wrote: > Upon further review, I have noticed that `pg_ctl stop` does not work once > the org.postgresql.postgres service has been started. I was trying to stop, > reinstall and re-initdb and restart postgres and this service was a pita. I had > to go back to your osx.patch to remind myself what I had done and only then > could I stop the service and continue my work. But isn't that the point? If you use this setup, you are supposed to use launchctl to control the service, not pg_ctl. The same applies to, say, a systemd setup. If you are using a process manager, then trying to control the process outside of that process manager isn't going to work well. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services