Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et1w8-0007dg-VM for pgsql-admin@arkaria.postgresql.org; Tue, 06 Mar 2018 02:02:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1et1w7-00086W-Oo for pgsql-admin@arkaria.postgresql.org; Tue, 06 Mar 2018 02:02:39 +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.89) (envelope-from ) id 1et1w7-00086M-HS for pgsql-admin@lists.postgresql.org; Tue, 06 Mar 2018 02:02:39 +0000 Received: from bantum.comp.uvic.ca ([142.104.177.238]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et1w0-00026d-7f for pgsql-admin@postgresql.org; Tue, 06 Mar 2018 02:02:36 +0000 Received: from [192.168.1.4] (S01060018f8676393.gv.shawcable.net [184.66.128.136]) (authenticated bits=0) by bantum.comp.uvic.ca (8.14.4/8.14.4) with ESMTP id w2622PZ4034626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 5 Mar 2018 18:02:25 -0800 To: pgsql-admin@postgresql.org From: Evan Rempel Subject: Re: What is the accepted practice to automate initdb (PostgreSQL 9.6) to a non-default directory? Message-ID: <387b6488-61f1-dcd7-2584-0fbbc2a9769b@uvic.ca> Date: Mon, 5 Mar 2018 18:02:24 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-MW X-UVic-Virus-Scanned: OK - Passed virus scan by ClamAV (clamd) on bantum X-UVic-Virus-Scanned: OK - Passed virus scan by Sophos (sophie) on bantum X-UVic-Scan: bantum.comp.uvic.ca filter_version 3.7.9 X-UVic-Outbound-Scan: bantum.comp.uvic.ca Not_scanned_Remote X-UVic-Spam-Scan: bantum.comp.uvic.ca No_recips_rejected X-UVic-Spam-Status: No X-UVic-Spam-Score: 0.25 HELO_MISC_IP X-UVic-Spam-Level: Spam-Level X-Scanned-By: MIMEDefang 2.78 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Have you looked at https://pgstef.github.io/2018/02/28/custom_pgdata_with_systemd.html